Open AhmedNSidd opened 10 months ago
I think I've found out what the issue is. As said in the OP, the question lies in the resiliency of the content/classes.py
. Specially in lines 1307 - 1317:
# if all seasons of the show could also be downloaded as single-season packs, compare the quality of the best ranking multi season pack with the lowest quality of the single season packs.
if not download_multi_season_release:
season_quality = min(season_releases)
quality = regex.search(
'(2160|1080|720|480)(?=p|i)', multi_season_releases[0].title, regex.I)
if quality:
quality = int(quality.group())
else:
quality = 0
if quality >= season_quality:
download_multi_season_release = True
The heuristic above is used to determine whether a multi-season pack should be used instead of single season packs. However, this heuristic as proven by the existence of this issue proves that it's not exactly correct / desirable.
One fool-proof way of ensuring that we pick the highest quality is to calculate the average bitrates of the multi-season release vs the average bitrates of the single season releases and compare those two metrics.
Thing is, I'm not sure if we have enough information to calculate those metrics, but I'll figure that out the more I play with this scenario.
Overview
I ran into this issue for the TV Show, Person of Interest. I simply used Plex Debrid as one would expect, and added the show to the watch list. However, instead of grabbing the best quality version, it instead grabbed a multi-season pack, even though the multi-season pack was of a lower bitrate than the individual seasons pack.
Expected Behaviour
I would have expected Plex Debrid would have gotten the individual Seasons Pack that were REMUXes instead of the multi-season packs which weren't.
Workaround
I just manually scraped the expected torrents, and that seemed to work fine.
Initial Investigation
Whether this is a bug, or not, I'm not quite sure of. Maybe the logic that's written in
content/classes.py
is not resilient enough to have solved this situation, and some enhancement is needed. Again, I'm not sure. I intend to do further investigation into this ticket to try to understand what could have caused this issue.Appendix
The Torrents Plex Debrid Grabbed
The Torrents Plex Debrid was supposed to grab
Version Settings
Logs