midgetspy/Sick-Beard — pull request #317 by Anthirian (2012-02-28 20:22:24+00:00)
Title: Don't download higher quality if the episode file has already been deleted

This pull request adds functionality to Sick Beard to allow users to enable the option to not download better qualities of episodes if the original file is no longer present on the system. This is useful for people who use Sick Beard to download episodes, watch them and then immediately delete them from their hard drives. The functionality is off by default and can be turned on via the Search Settings config page.

The reason for this functionality is that you sometimes watch an episode before a higher quality becomes available. Other times however, you may not have the time to watch a new downloaded episode straight away. Until you do, you still would want Sick Beard to download the higher quality episodes. This is not an issue if you never delete your episodes, but it is when you do, or when you have a limited plan with your usenet provider.

This functionality works for the backlog searches as well as the RSS searches. It is not fully finished yet, as I am still in doubt as to what to do if one episode of a multi-episode or a season has been deleted. You probably wouldn't want to have to download an entire season if that means you get 2 or 3 episodes in higher quality, but the question is where to draw the line?

PS. This is a rewrite of pull request 307 (https://github.com/midgetspy/Sick-Beard/pull/307), which messed up the other branches since I modified stuff in the master branch.