Browse Source

Convert torrent hash to uppercase

pull/863/head
Ruud 13 years ago
parent
commit
5776b2caad
  1. 2
      couchpotato/core/downloaders/base.py

2
couchpotato/core/downloaders/base.py

@ -56,7 +56,7 @@ class Downloader(Plugin):
return is_correct
def magnetToTorrent(self, magnet_link):
torrent_hash = re.findall('urn:btih:([\w]{32,40})', magnet_link)[0]
torrent_hash = re.findall('urn:btih:([\w]{32,40})', magnet_link)[0].upper()
# Convert base 32 to hex
if len(torrent_hash) == 32:

Loading…
Cancel
Save