autodl-community / autodl-irssi

A community-driven fork of autodl-irssi
https://autodl-community.github.io/autodl-irssi/
373 stars 73 forks source link

Auto Upgrade Resolutions from 720p to 1080p inside Filters #182

Open ekk88d opened 4 years ago

ekk88d commented 4 years ago

Most initial TV releases are 720p, and I'd like to specify in each filter that autodl-irssi can upgrade the resolution by downloading a new 1080p release, when it becomes available. Sonarr has the ability to upgrade 1) resolution and 2) quality (web-dl, bluray, hdrip, etc). This would be a similar implementation.

I use Smart Episode to avoid downloading backfilled releases. I thought of disabling Smart Episode and specifying 2 max releases per day, but that workaround introduces new issues.

Creating copied filters, one with 720p and one with 1080p, downloads both resolutions. However, this creates doubles the Filters table for a feature that could be included in oner. In copying each existing filter, autodl-irssi would also download both 720p and 1080p, even if the initial release is 1080p. That is why upgrading the resolution is the best option.

thebigmunch commented 4 years ago

Not unless someone other than me is willing and able to implement new, proper database code.

Short of that, you could probably fairly easily use the exec action and script the checks yourself. Custom exec action scripts are something I thought I'd see a lot more of floating around GitHub or tracker forums. But that just hasn't been the case.

k6Q28k5w5eWuRuuzTg9j7GrKCbjt7 commented 4 years ago

I could be willing to do this depending on the db/reqs/constraints.