Private GIT

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

Can't handle magnets without title! - Fixes SiCKRAGETV/sickrage-issues#2081

parent 01032531
Branches
Tags
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