mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Possible fix for failed to send torrent errors
This commit is contained in:
parent
88d68cfe11
commit
f3073174ed
1 changed files with 6 additions and 1 deletions
|
@ -130,7 +130,12 @@ def snatchEpisode(result, endStatus=SNATCHED):
|
||||||
dlResult = _downloadResult(result)
|
dlResult = _downloadResult(result)
|
||||||
else:
|
else:
|
||||||
# Snatches torrent with client
|
# Snatches torrent with client
|
||||||
result.content = result.provider.getURL(result.url) if not result.url.startswith('magnet') else None
|
result.content = None
|
||||||
|
if not result.url.startswith('magnet'):
|
||||||
|
result.content = result.provider.getURL(result.url)
|
||||||
|
if not result.content:
|
||||||
|
return False
|
||||||
|
|
||||||
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
|
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
|
||||||
dlResult = client.sendTORRENT(result)
|
dlResult = client.sendTORRENT(result)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue