mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Fixes typo in previous commit
This commit is contained in:
parent
0cea9877ed
commit
ba5e5478e0
@ -145,7 +145,7 @@ class GenericClient(object):
|
|||||||
if result.url.startswith('magnet'):
|
if result.url.startswith('magnet'):
|
||||||
result.hash = re.findall('urn:btih:([\w]{32,40})', result.url)[0]
|
result.hash = re.findall('urn:btih:([\w]{32,40})', result.url)[0]
|
||||||
if len(result.hash) == 32:
|
if len(result.hash) == 32:
|
||||||
result.hash = b16encode(b32decode(torrent_hash)).lower()
|
result.hash = b16encode(b32decode(result.hash)).lower()
|
||||||
else:
|
else:
|
||||||
result.content = result.provider.getURL(result.url)
|
result.content = result.provider.getURL(result.url)
|
||||||
info = bdecode(result.content)["info"]
|
info = bdecode(result.content)["info"]
|
||||||
|
Loading…
Reference in New Issue
Block a user