Jump to content

Script - Parental Rating Copier from Show to Episodes


ginjaninja

Recommended Posts

ginjaninja

Overwrites the parental rating of every episode with the parental rating of the show.

requested by @Oxide

notes

  • Requires Powershell 7+
  • Review config.psd1, add admin credentials, change $testmode to $false when ready to make changes
  • as always test thoroughly on a backed up database.

changes

  • v0.0.0.6 amended some of the screen and logfile logging to improve clarity.

download

Parental Rating Copier v0.0.0.6.zip

 

issues suggestions welcome.

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

GrimReaper

Does it expose those ratings in the UI and show them in episode detail view? 

Link to comment
Share on other sites

ginjaninja
4 hours ago, GrimReaper said:

Does it expose those ratings in the UI and show them in episode detail view? 

seems to , why is there a known gotcha to look out for with parental ratings?

image.thumb.png.5ddf43cacc88f6903fc2dac6f4299c72.png

  • Thanks 1
Link to comment
Share on other sites

Happy2Play
5 hours ago, ginjaninja said:

is there a known gotcha to look out for with parental ratings?

Not that I know of either, but by default genre and PR are inherited from Series but do not show on Episode.

Not sure how restrictions would apply if episode had different rating, then Series if this where to happen though.

This is where I discovered what I would have to say a legacy issue with episode genres as it only applied to specific episodes.

 

Link to comment
Share on other sites

GrimReaper
38 minutes ago, Happy2Play said:

Not sure how restrictions would apply if episode had different rating, then Series if this where to happen though.

But since the script is only copying Series rating to Episodes, that should never occur with its usage, only if rating was manually appended, which is something that anyone can do at any time without using the script anyway? 

Edited by GrimReaper
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
ginjaninja
On 28/12/2023 at 15:53, Oxide said:

@ginjaninjaany chance you can make this into a plugin like you did for Geust Star Cleaner :)

accessing the emby web api from within the plugin environment was not trivial last time i looked and i havent found a way yet...the plugin environment's objects and methods sometimes were not equivalent to the simplicity of the web api but thats probably a testament to my lack of ability. I do need to get back into plugin learning but its going to be a few months before i have spare time...perhaps someone else can convert it?

  • Thanks 1
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...