Medusa
Medusa copied to clipboard
Manually adding a torrent to transmission triggers show to re-snatch seasons/episodes
Describe the bug
I'm not entirely sure this is a bug, but i cant see any feature that would cause this to happen. Sorry if this is intended behavior
I have some fully completed shows that are all downloaded as the "preferred quality". often as these are mix and match from different sources, sometimes different qualities (because I allow multiple different qualities in my preferred qualities list) as the episode have been released. as they are already preferred quality, no more torrents are snatched (as expected)
At some point later usually after the show has ended I want to download a single source to replace them all to ensure consistency and quality. I usually manually go out and find a torrent and add it to my torrent client, (transmission) with the intnetion of using manual post processing and force/mark priority files.
Sometime after adding the torrent (probably next backlog search) This seems to trigger Medusa to start snatching all the episode again, as if they were either set to wanted, or not preferred quality.
To Reproduce Steps to reproduce the behavior:
- Have completed show with all preferred episodes downloaded
- manually add torrent without using Medusa (directly to transmission)
- wait some time
- eventually (I assume next backlog or daily search) more torrents are adding by Medusa and the episodes are set to snatched, some are set to wanted
Expected behavior I would expect that adding torrents manually without Medusa would not change the status/state of the show/episodes
Medusa (please complete the following information):
- OS: FreeBSD-13.1-RELEASE-p7-amd64-64bit-ELF (truenas 13)
- Branch: Master
- Commit: 3d656652ab277e47689483912ed7fc443e7023e8
- Python version: 3.9.17
- Database version: 44.19
Debug logs (at least 50 lines): General > Advanced Settings > Enable debug
attached as file
application1.log application2.log application3.log
Additional context I can see in the logs at 2023-10-15 08:12:10 the daily queue starts looking for "stargate SG-1" as the reason is "wanted" i cant see earlier in the logs any reason why these are now wanted (this particular set was previously all preferred downloaded") the only thing i can see is shortly before the post processor saw the completed file (that i had manually added) in the folder to be post processed but couldnt find any compatible files.
The only theory I have is medusa post processor sees a folder appear called stargate SG-1, but as medusa has the episodes already as preferred quality downloaded, it cant do anything with them so it marks them as failed?
A bit more investigation on my part and I believe this is the failed download handler, because it sees a completed file but doesn't replace the existing file it treats it as a failed download.
Not sure if this is the intended/preferred behavior, I personally would expect the failed download handler to only apply to torrents that medusa has snatched itself, but that might be technically difficult to implement. (or not wanted)