Casvt / Plex-scripts

Plex, the arr's and tautulli scripts coming from user requests
GNU General Public License v3.0
338 stars 30 forks source link

auto_upgrade_media.py: downgrade after viewcount #119

Closed Chewwwy92 closed 2 years ago

Chewwwy92 commented 2 years ago

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.

Casvt commented 2 years ago

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

Those settings can be used to set it up.

Chewwwy92 commented 2 years ago

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

Casvt commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Upgraded the script. Enjoy \:)