From ba5e5478e02b83045348ca5a83a495c4d8a00c70 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 25 Aug 2014 11:32:41 +0800 Subject: [PATCH] Fixes typo in previous commit --- sickbeard/clients/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/clients/generic.py b/sickbeard/clients/generic.py index 6e47f101..a3465719 100644 --- a/sickbeard/clients/generic.py +++ b/sickbeard/clients/generic.py @@ -145,7 +145,7 @@ class GenericClient(object): if result.url.startswith('magnet'): result.hash = re.findall('urn:btih:([\w]{32,40})', result.url)[0] if len(result.hash) == 32: - result.hash = b16encode(b32decode(torrent_hash)).lower() + result.hash = b16encode(b32decode(result.hash)).lower() else: result.content = result.provider.getURL(result.url) info = bdecode(result.content)["info"]