mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-11 20:05:04 -05:00
Possible fix for failed to send torrent errors
This commit is contained in:
parent
8415b32fc6
commit
6c15943363
@ -361,15 +361,6 @@ class TVCache():
|
|||||||
result.version = curVersion
|
result.version = curVersion
|
||||||
result.content = None
|
result.content = None
|
||||||
|
|
||||||
# validate torrent file if not magnet link to avoid invalid torrent links
|
|
||||||
if self.provider.providerType == sickbeard.providers.generic.GenericProvider.TORRENT:
|
|
||||||
if sickbeard.TORRENT_METHOD != "blackhole":
|
|
||||||
client = clients.getClientIstance(sickbeard.TORRENT_METHOD)()
|
|
||||||
result = client._get_torrent_hash(result)
|
|
||||||
if not result.hash:
|
|
||||||
logger.log(u'Unable to get torrent hash for ' + title + ', skipping it', logger.DEBUG)
|
|
||||||
continue
|
|
||||||
|
|
||||||
# add it to the list
|
# add it to the list
|
||||||
if epObj not in neededEps:
|
if epObj not in neededEps:
|
||||||
neededEps[epObj] = [result]
|
neededEps[epObj] = [result]
|
||||||
|
Loading…
Reference in New Issue
Block a user