Plex-scripts icon indicating copy to clipboard operation
Plex-scripts copied to clipboard

auto_upgrade_media.py: downgrade after viewcount

Open Chewwwy92 opened this issue 3 years ago • 3 comments

If you have a movie that is a 4k REMUX or a Tv show that is 4k it would be awesome to delete it once it has been watched. so I still have the content but its not taking up as much space.

Chewwwy92 avatar Jul 04 '22 05:07 Chewwwy92

Isn't this already possible in Plex? See https://i.imgur.com/DCikEjn.jpg.

Those settings can be used to set it up.

Casvt avatar Jul 04 '22 08:07 Casvt

But could that then trigger sonnar to re-download at a lower quality? Otherwise sonnar would most likely just re-download it at the current quality

Chewwwy92 avatar Jul 04 '22 23:07 Chewwwy92

It's smarter to make this a feature for this script: https://github.com/Casvt/Plex-scripts/blob/main/media_versions/auto_upgrade_media.py

Casvt avatar Jul 19 '22 11:07 Casvt

Request completed. Feature added to this script: https://github.com/Casvt/Plex-scripts/blob/main/media_versions/auto_upgrade_media.py

Use --DowngradeAboveViewcount 1 to downgrade media after it has been watched once.

Little note: I'm going to significantly upgrade/improve this script soon so you might want to wait on that one so you use the nice version. The current version (though it works) is not well written and has some small bugs. I advice you to wait. I'll let you know when the upgrade is completed.

Casvt avatar Aug 24 '22 22:08 Casvt

Upgraded the script. Enjoy :)

Casvt avatar Aug 25 '22 14:08 Casvt