Private GIT

Skip to content
Snippets Groups Projects
Commit fbdc1f67 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1994 from miigotu/file-download-error

Failed to load URL? This section needs debugged hard
parents a651639d 95f89afd
No related branches found
No related tags found
No related merge requests found
......@@ -199,6 +199,14 @@ def pickBestResult(results, show):
if show and cur_result.show is not show:
continue
#TODO: Is this the cause of #1579 (Downloading wrong torrent)
if isinstance(cur_result, sickbeard.classes.SearchResult):
if cur_result.resultType == "torrent" and sickbeard.TORRENT_METHOD != "blackhole":
if not cur_result.url.startswith('magnet'):
cur_result.content = cur_result.provider.getURL(cur_result.url)
if not cur_result.content:
continue
else:
if not cur_result.url.startswith('magnet'):
cur_result.content = cur_result.provider.getURL(cur_result.url)
if not cur_result.content:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment