Jump to content

Plug-In Request: Parental Guidance Cleaner


DarkStar1977

Recommended Posts

seanbuff
12 hours ago, TeamB said:

also it is not just a matter of blindly mapping stuff in the official plugin or core as actually mapping a US PG to a AU PG is not actually correct and may be wrong in some cases.

yeah agree, a direct mapping of US > AU ratings won't work a lot of the time.

Example:
Terminator 2 is rated 'R' in the US, yet it's only rated 'M' in AU (not even MA 15+)

 

Look forward to seeing what you pull together, thanks @TeamB

  • Agree 1
Link to comment
Share on other sites

Junglejim
On 01/01/2024 at 14:50, TeamB said:

wouldnt you just map "AU-MA 15+" -> "AU-MA15+"

just write a plugin that does the update nightly "AU-MA 15+" -> "AU-MA15+"

Personally I went with the "AU-MA15+" and "AU-R18+" because that was the bulk of my ratings, so it was less work to remove the space from others. 😆

I know that prob was the wrong thing to do but it works and they are all the same..

Screenshot_2024-01-02_19-20-06.thumb.png.3107da0bc3ffafe8e1cbe857f8338e8a.png

Link to comment
Share on other sites

Junglejim
10 hours ago, seanbuff said:

yeah agree, a direct mapping of US > AU ratings won't work a lot of the time.

Example:
Terminator 2 is rated 'R' in the US, yet it's only rated 'M' in AU (not even MA 15+)

 

Look forward to seeing what you pull together, thanks @TeamB

Yep, I don't know why there has to be so many rating systems. 🙄

Plus the US TV ratings... 😆

This could be harder than it looks! Thanks @TeamBfor taking a look at this. 🍻

I'm not expecting anything but at least you had a go! 👍

Link to comment
Share on other sites

TeamB
49 minutes ago, Junglejim said:

Yep, I don't know why there has to be so many rating systems. 🙄

Plus the US TV ratings... 😆

This could be harder than it looks! Thanks @TeamBfor taking a look at this. 🍻

I'm not expecting anything but at least you had a go! 👍

I have a simple framework of a plugin up and running, I will post something to test in the next few hours.

Link to comment
Share on other sites

Junglejim
Just now, TeamB said:

I have a simple framework of a plugin up and running, I will post something to test in the next few hours.

WOW.. 🤩 You must be on holidays same as me.. I've got to the 15th. 😁

Could be a late night for me, I'd love to test this! Most of my libs are sorted but if this can remove some of my slackness when it comes to the metadata editor, I'm all in!!

Plus future ratings. This will always be a problem as far as TMBD/TVDB goes.

Link to comment
Share on other sites

TeamB
27 minutes ago, Junglejim said:

WOW.. 🤩 You must be on holidays same as me.. I've got to the 15th. 😁

Could be a late night for me, I'd love to test this! Most of my libs are sorted but if this can remove some of my slackness when it comes to the metadata editor, I'm all in!!

Plus future ratings. This will always be a problem as far as TMBD/TVDB goes.

Extract the dll into the plugins dir.

You will need to set up your mappings, something like this:

image.png.4a7b44e954e5e25cf05a1a5ba599eef8.png

 

The report on the settings page will help with your mappings.

The idea is add all your local classification ratings and then add all the ones you want to map to them. In the example above a ratting of MA will get changed to AU-MA and the PG will be changed to AU-PG. You can have multiple (comma seperated) items that will get updated to the target, in the above both MA and PG-13 will get mapped to AU-MA.

You then just run the Task and the items will be updated.

This is experimental, so I would not run it on a production system.

I have done limited testing and it is working ok but feedback would be good.

 

 

ClassificationMapper.zip

Edited by TeamB
  • Like 1
Link to comment
Share on other sites

Junglejim

Cool mate! I will give it a go! Maybe I should spin up a test server.. :)  Not to sure I want to run this on my NAS at the moment.

Looks good to me, simple interface. ++ 👍

BRB

Sorry mate, got some family Sh#! to deal with. Will have to test this tomorrow. 🙄

Edited by Junglejim
Link to comment
Share on other sites

Junglejim
13 hours ago, TeamB said:

Extract the dll into the plugins dir.

You will need to set up your mappings, something like this:

image.png.4a7b44e954e5e25cf05a1a5ba599eef8.png

 

The report on the settings page will help with your mappings.

The idea is add all your local classification ratings and then add all the ones you want to map to them. In the example above a ratting of MA will get changed to AU-MA and the PG will be changed to AU-PG. You can have multiple (comma seperated) items that will get updated to the target, in the above both MA and PG-13 will get mapped to AU-MA.

You then just run the Task and the items will be updated.

This is experimental, so I would not run it on a production system.

I have done limited testing and it is working ok but feedback would be good.

 

 

ClassificationMapper.zip 43.85 kB · 2 downloads

Thanks mate, this works great!

I added the spaces back to my AU-MA15+ AU-R18+, plus I cleaned up some PG-13. 👍

Screenshot_2024-01-03_10-49-56.thumb.png.d9d6c9de55a5529911da4def37a03d30.png

  • Thanks 1
Link to comment
Share on other sites

TeamB

I have been testing this all moring and am resonably happy with it.

I will give it a few days and if I dont find any weirdness with it I will add it to the Catalogue.

One thing to keep in mind, if you do a metadata refresh on your lib or an item the old values will be reset, you will just need to run the task again.

 

  • Thanks 1
Link to comment
Share on other sites

Junglejim
7 minutes ago, TeamB said:

I have been testing this all moring and am resonably happy with it.

I will give it a few days and if I dont find any weirdness with it I will add it to the Catalogue.

One thing to keep in mind, if you do a metadata refresh on your lib or an item the old values will be reset, you will just need to run the task again.

 

Yeah, this was my first run with it. I will add more comma separated rules to fine tune things as I go. Then I will let it run its schedule every night.

Thanks again mate! Looking forward to you adding it into the catalogue.

Link to comment
Share on other sites

Junglejim

If your like me and get confused with the different rating classifications of different countries this could help a bit...

Screenshot_2024-01-03_13-53-17.png.a8b8f31be3676745fe7a71fa319791e6.png

There are still a lot that overlap each other and are open to interpretation and it's not complete as far as countries go. I know I have made a lot of mistakes here (PG-13 --> AU-PG for example).

Only a lib refresh will fix most of them, some day.. 😁

Image taken from: https://www.alrc.gov.au/publication/classification-content-regulation-and-convergent-media-alrc-report-118/appendix-3-international-comparison-of-classification-and-content-regulation/table-international-comparison-of-film-classifications/

Edited by Junglejim
  • Thanks 2
Link to comment
Share on other sites

Junglejim

Small bug maybe?

Screenshot_2024-01-03_16-34-57.png.3dbff9d20c65382714aa541a7d2441cd.png

I would have thought AU-M would be a correct classification?

Link to comment
Share on other sites

TeamB
7 minutes ago, Junglejim said:

Small bug maybe?

Screenshot_2024-01-03_16-34-57.png.3dbff9d20c65382714aa541a7d2441cd.png

I would have thought AU-M would be a correct classification?

"Correct" in this context means it is in your above list of target classification.

If you add a AU-M with no mappings then it will stop showing up unless you have the "Include items with correct classifications"

Perhaps "correct" is not the correct 🙂 work here

This is just to show you any item that does not have a classification map yet, i.e. somethign new popped up that might need a new mapping

Edited by TeamB
  • Like 1
Link to comment
Share on other sites

Junglejim
35 minutes ago, TeamB said:

"Correct" in this context means it is in your above list of target classification.

If you add a AU-M with no mappings then it will stop showing up unless you have the "Include items with correct classifications"

Perhaps "correct" is not the correct 🙂 work here

This is just to show you any item that does not have a classification map yet, i.e. somethign new popped up that might need a new mapping

Thanks, Yep haven't mapped any AU-M yet, haven't needed to. :)

I should map them all I guess. 🍻

Screenshot_2024-01-03_17-11-57.png.476d0b460c277b14599abe24fe764f1e.png

All good! 👍 Slowly getting it all mapped, got a couple of decisions make for some countries (US mainly).

Edited by Junglejim
Link to comment
Share on other sites

jaycedk

Guess this could also help with US ratings, transformed into DK ratings.

Then I would not have to update on tmdb where they don't have DK ratings.

Nice will try this out 👍

Link to comment
Share on other sites

Junglejim
7 minutes ago, jaycedk said:

Guess this could also help with US ratings, transformed into DK ratings.

Then I would not have to update on tmdb where they don't have DK ratings.

Nice will try this out 👍

Yeah give it a go, It seems like a search and replace process. @TeamBwould have a better idea. ;)

  • Like 1
Link to comment
Share on other sites

TeamB
19 minutes ago, Junglejim said:

Yeah give it a go, It seems like a search and replace process. @TeamBwould have a better idea. ;)

yeah it is exactly that, it does a find replace.

  • Thanks 1
Link to comment
Share on other sites

Junglejim
25 minutes ago, jaycedk said:

This is so cool 😎

Any chance of making the input fields longer 🤣😂

My Classifications where all over the place 😁

image.png.5bc759b6d067326ec11f6f12853fa40e.png

Nice! Haven't got to the TV ratings yet (because I'm OCD and did it manually 🙄).

I can see how the input field could fill (TV-Y*, TV-*.. ). Nice suggestion though. 👍

Link to comment
Share on other sites

TeamB
53 minutes ago, jaycedk said:

This is so cool 😎

Any chance of making the input fields longer 🤣😂

My Classifications where all over the place 😁

image.png.5bc759b6d067326ec11f6f12853fa40e.png

I used this to look up a lot of the ratings.

Motion picture content rating system - Wikipedia

Why do you have DK-11 mapped to DK-11? This is just going to cause lots of updates that dont need to happen.

  • Like 1
Link to comment
Share on other sites

Junglejim
2 minutes ago, TeamB said:

Why do you have DK-11 mapped to DK-11? This is just going to cause lots of updates that dont need to happen.

He has all the fields mapped to themselves..? 😕

Link to comment
Share on other sites

jaycedk

Jep I have just removed all of them.

Guess rookie dummy mistake 😂🤣

image.png.3f212be24c0f8314e190ae9621fd78d6.png

  • Like 1
Link to comment
Share on other sites

TeamB
7 minutes ago, jaycedk said:

Jep I have just removed all of them.

Guess rookie dummy mistake 😂🤣

image.png.3f212be24c0f8314e190ae9621fd78d6.png

ok, I will add some checks to stop users from doing that.

Its not a big deal but problem is it will do an update and so a save for each match and because it will always match because it is setting the same value over and over it will always do a force update and save causing more work than is needed.

These are the things we can find with more testing 🙂

  • Agree 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...