Private GIT

Skip to content
Snippets Groups Projects
Commit 5b9da7a5 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge branch 'hotfix-issue-2081' into develop

parents bbe5aa2c 80b992c9
No related branches found
No related tags found
No related merge requests found
...@@ -162,12 +162,13 @@ class GenericProvider: ...@@ -162,12 +162,13 @@ class GenericProvider:
torrent_hash = b16encode(b32decode(torrent_hash)).upper() torrent_hash = b16encode(b32decode(torrent_hash)).upper()
if not torrent_hash: if not torrent_hash:
logger.log("Unable to extract torrent hash from link: " + ex(result.url), logger.ERROR) logger.log("Unable to extract torrent hash from magnet: " + ex(result.url), logger.ERROR)
return (urls, filename) return (urls, filename)
urls = [x.format(torrent_hash=torrent_hash, torrent_name=torrent_name) for x in self.btCacheURLS] urls = [x.format(torrent_hash=torrent_hash, torrent_name=torrent_name) for x in self.btCacheURLS]
except: except:
urls = [result.url] logger.log("Unable to extract torrent hash or name from magnet: " + ex(result.url), logger.ERROR)
return (urls, filename)
else: else:
urls = [result.url] urls = [result.url]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment