Help with code/logic to reprocess entire media directory efficiently
Posted: 29 Sep 2018, 18:24
My scenario is that I would like to reprocess my entire media directory and pull out UHD to place them into a different directory structure.
My issue is that I can't figure out the code to test the media if it is UHD or not, and then only re-process if it is UHD. i want to leave the SD/HD content alone for now. The reason I want to leave the HD/SD alone for now is that I have 10k or so files to process and want this to run as quickly as possible, and they are all stored on google drive using an rclone mount.
Here is my a format expression that I am playing with (works fine for newly processed content)
This expression allows me to place files in this sort of structure for plex:
Thanks as always for the great software and excellent support.
My issue is that I can't figure out the code to test the media if it is UHD or not, and then only re-process if it is UHD. i want to leave the SD/HD content alone for now. The reason I want to leave the HD/SD alone for now is that I have 10k or so files to process and want this to run as quickly as possible, and they are all stored on google drive using an rclone mount.
Here is my a format expression that I am playing with (works fine for newly processed content)
Code: Select all
{hd =~ /UHD/ ? '4K/movies' : 'movies'}/{plex.tail} [{allOf{hd}{vf}{hdr}{bitdepth+'bit'}{vc}{af}{atmos}{ac}{s3d}{source}{tags}{group} join ', '}]
Code: Select all
\4K
..\movies
..\tv
\movies
\tv