The reason I do this is that I have a certain file size (1440x960) for the poster rendering across plex, serviio, and Kodi.I have found that they are all various sizes.so this script deals with the replication. The random filename is most likely from the filename it has from sites like IMDB or themoviedb which would previously be the only jpg and renamed folder.jpg automatically keeping everything as I'd expect. So I need my script to rename the only remaining file that would be there with any RANDOM filename which will be shown in my screenshot below. Now that I've scraped the info properly, I have all the MP4 files and now corresponding NFO and thumbnail files for each episode.which is what it is supposed to do.but now causes havoc with my script as there are now more than 1 jpg file present. This worked great prior to me scraping the folders with the Media Companion tool.before the Media companion tools I had within each season folder all the MP4 files for that season.and a single folder.jpg. My script takes a copy of that, and moves it up a level and renames it as Seasonxx-thumb and poster for Kodi to use the posters that I specify. Within the season folders is a filed typically called folder.jpg. My script is used for TV Shows which are broken out as ROOT > Series > Seasons 1 - XX. I am having issues in one particular area after an unexpected condition showed up during the development. I wrote a batch script to help assist in images and posters that Kodi uses in parallel with a program called Media companion.
0 Comments
Leave a Reply. |