ginjaninja 538 Posted February 3, 2023 Share Posted February 3, 2023 (edited) 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 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 February 21, 2023 by ginjaninja 1 1 Link to comment Share on other sites More sharing options...
Eigeplackter 75 Posted February 3, 2023 Share Posted February 3, 2023 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 More sharing options...
ginjaninja 538 Posted February 4, 2023 Author Share Posted February 4, 2023 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. 1 Link to comment Share on other sites More sharing options...
ginjaninja 538 Posted February 21, 2023 Author Share Posted February 21, 2023 Added support for (Smart)Playlists Emby.CycleImages v0.1.0.1.zip 1 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