Convert torrent hash to uppercase

This commit is contained in:
Ruud
2012-09-22 09:05:44 +02:00
parent f82e2a3e6e
commit 5776b2caad

View File

@@ -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: