mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
Fixed result content for Season Pack results
Added an extra check into the snatchEpisode method so that the result.content data for a required torrent is always downloaded if needed
This commit is contained in:
parent
f65262e0e9
commit
94063db43e
@ -129,6 +129,14 @@ def snatchEpisode(result, endStatus=SNATCHED):
|
||||
if sickbeard.TORRENT_METHOD == "blackhole":
|
||||
dlResult = _downloadResult(result)
|
||||
else:
|
||||
# make sure we have the torrent file content
|
||||
if not result.content:
|
||||
if not result.url.startswith('magnet'):
|
||||
result.content = result.provider.getURL(result.url)
|
||||
if not result.content:
|
||||
logger.log(
|
||||
u"Torrent content failed to download from " + result.url, logger.ERROR
|
||||
)
|
||||
# Snatches torrent with client
|
||||
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
|
||||
dlResult = client.sendTORRENT(result)
|
||||
|
Loading…
Reference in New Issue
Block a user