seanbuff 842 Posted January 1 Share Posted January 1 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 1 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 2 Share Posted January 2 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.. Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 2 Share Posted January 2 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 More sharing options...
TeamB 2354 Posted January 2 Share Posted January 2 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 More sharing options...
Junglejim 354 Posted January 2 Share Posted January 2 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 More sharing options...
TeamB 2354 Posted January 2 Share Posted January 2 (edited) 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: 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 January 2 by TeamB 1 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 2 Share Posted January 2 (edited) 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 January 2 by Junglejim Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 13 hours ago, TeamB said: Extract the dll into the plugins dir. You will need to set up your mappings, something like this: 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. 1 Link to comment Share on other sites More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 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. 1 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 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 More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 (edited) If your like me and get confused with the different rating classifications of different countries this could help a bit... 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 January 3 by Junglejim 2 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 Small bug maybe? I would have thought AU-M would be a correct classification? Link to comment Share on other sites More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 (edited) 7 minutes ago, Junglejim said: Small bug maybe? 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 January 3 by TeamB 1 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 (edited) 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. All good! Slowly getting it all mapped, got a couple of decisions make for some countries (US mainly). Edited January 3 by Junglejim Link to comment Share on other sites More sharing options...
jaycedk 389 Posted January 3 Share Posted January 3 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 More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 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. 1 Link to comment Share on other sites More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 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. 1 Link to comment Share on other sites More sharing options...
jaycedk 389 Posted January 3 Share Posted January 3 (edited) This is so cool Any chance of making the input fields longer My Classifications where all over the place I used this to look up a lot of the ratings. Motion picture content rating system - Wikipedia Edited January 3 by jaycedk 1 Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 25 minutes ago, jaycedk said: This is so cool Any chance of making the input fields longer My Classifications where all over the place 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 More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 53 minutes ago, jaycedk said: This is so cool Any chance of making the input fields longer My Classifications where all over the place 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. 1 Link to comment Share on other sites More sharing options...
jaycedk 389 Posted January 3 Share Posted January 3 Ohh ok will remove that Link to comment Share on other sites More sharing options...
Junglejim 354 Posted January 3 Share Posted January 3 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 More sharing options...
jaycedk 389 Posted January 3 Share Posted January 3 Jep I have just removed all of them. Guess rookie dummy mistake 1 Link to comment Share on other sites More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 7 minutes ago, jaycedk said: Jep I have just removed all of them. Guess rookie dummy mistake 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 2 Link to comment Share on other sites More sharing options...
TeamB 2354 Posted January 3 Share Posted January 3 New thread dedicated to the plugin https://emby.media/community/index.php?/topic/124550-classification-mapper/ The plugin is also in the Catalogue now under the Metadata area 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now