Private GIT

Skip to content
Snippets Groups Projects
Commit ea0e6a86 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

properfind: Fix forgotten content

Torrent file content was dropped along to way to sendtorrent
parent cadde68a
Branches
Tags
No related merge requests found
...@@ -243,6 +243,7 @@ class ProperFinder(): ...@@ -243,6 +243,7 @@ class ProperFinder():
result.quality = curProper.quality result.quality = curProper.quality
result.release_group = curProper.release_group result.release_group = curProper.release_group
result.version = curProper.version result.version = curProper.version
result.content = curProper.content
# snatch it # snatch it
search.snatchEpisode(result, SNATCHED_PROPER) search.snatchEpisode(result, SNATCHED_PROPER)
......
...@@ -130,9 +130,12 @@ def snatchEpisode(result, endStatus=SNATCHED): ...@@ -130,9 +130,12 @@ def snatchEpisode(result, endStatus=SNATCHED):
if sickbeard.TORRENT_METHOD == "blackhole": if sickbeard.TORRENT_METHOD == "blackhole":
dlResult = _downloadResult(result) dlResult = _downloadResult(result)
else: else:
#result.content = result.provider.getURL(result.url) if not result.url.startswith('magnet') else None if result.content:
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)() client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
dlResult = client.sendTORRENT(result) dlResult = client.sendTORRENT(result)
else:
logger.log(u"Torrent file content is empty", logger.ERROR)
dlResult = False
else: else:
logger.log(u"Unknown result type, unable to download it", logger.ERROR) logger.log(u"Unknown result type, unable to download it", logger.ERROR)
dlResult = False dlResult = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment