Browse Source

Don't try to download magnet links

pull/7325/head
mrlt8 5 years ago
committed by GitHub
parent
commit
620d501a24
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      couchpotato/core/media/_base/providers/base.py

3
couchpotato/core/media/_base/providers/base.py

@ -203,6 +203,9 @@ class YarrProvider(Provider):
return {} return {}
def download(self, url = '', nzb_id = ''): def download(self, url = '', nzb_id = ''):
if re.match('^magnet:.*$', url):
return url
try: try:
return self.urlopen(url, headers = {'User-Agent': Env.getIdentifier()}, show_error = False) return self.urlopen(url, headers = {'User-Agent': Env.getIdentifier()}, show_error = False)
except: except:

Loading…
Cancel
Save