Jump to content

Cycle Images Plugin


ginjaninja

Recommended Posts

ginjaninja

image.png.650756e941ea120be8550c38c173b539.png

Purpose / Benefit / Intended Uses

To refresh the auto generated image on containers like Collections, when the members change, so as to reflect the container's current content. I use it for "Smart Playlists" and  "recommendation" collections eg "Recommended for Mum"...as recommendations are added and removed after being watched.

Functionality

Deletes the primary image of tagged items (default value "cyclepic") and performs a default metadata refresh on said item (get missing metadata) which has the effect of regenerating the primary image based on current contents.

Stores a hash for the tagged item in configuration.xml to reflect the container's members, to prevent images getting changed when no items have been added / removed.

Stops running if no tag has been defined (to minimise risk of unwanted outcomes).

Feedback in the log.

2023-02-03 20:53:09.829 Info Cycle Images: Working on tag: cyclepic
2023-02-03 20:53:09.830 Info Cycle Images: Total No. of Objects with Tag : cyclepic : 2
2023-02-03 20:53:09.856 Info Cycle Images: Refreshed Image for ID:382 Name:_For Mum Type:BoxSet
2023-02-03 20:53:09.858 Info Cycle Images: Updated Item in Config.XML for ID:382 Name:_For Mum Type:BoxSet Date:03/02/2023 20:53:09
2023-02-03 20:53:09.859 Info Cycle Images: No Update Neccessary for ID:391 Name:newc Type:BoxSet
2023-02-03 20:53:09.859 Info Cycle Images: Working on tag: reccomendation
2023-02-03 20:53:09.859 Info Cycle Images: Total No. of Objects with Tag : reccomendation : 0

Instructions for use

Set the tag name(s) you wish to designate for items to have their image cycled in the plugin configuration; Configure a schedule task

image.png.715d9aa41b521d4342999d22059c975c.pngimage.png.2667cbfca19af2d709bda3c099af20b2.pngimage.png.93acd51abf652eab466f000c038a766f.png

Notes

Working for collections and playlists, other types are ignored. Backup before use.

Issues/Suggestions welcome

Download

Emby.CycleImages v0.1.0.1.zip

 

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

Eigeplackter
49 minutes ago, ginjaninja said:

...

Functionality

Deletes the primary image of tagged items (default value "cyclepic") and performs a default metadata refresh on said item (get missing metadata) which has the effect of regenerating the primary image based on current contents.

Stores a hash for the tagged item in configuration.xml to reflect the container's members, to prevent images getting changed when no items have been added / removed.

...

Does this mean it replaces my custom covers while doing a default metadata refresh ?

Link to comment
Share on other sites

ginjaninja

the collections tagged with your specified tag have their primary  image deleted and then a default metadata refresh applied. The members of those collections are not refreshed.  Untagged collections are ignored. only tag the collections you want to refresh the images for. A default metadata refresh doesnt change images already present, that said do test on a backed up environment.

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

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...