Url fix for pirate bay (credit to dsm1212)

This commit is contained in:
rembo10
2014-04-28 20:03:02 -07:00
parent 3b9816f3b3
commit 900325186b
+2
View File
@@ -1232,6 +1232,8 @@ def searchTorrent(album, new=False, losslessOnly=False):
continue
else:
url = item.findAll("a")[3]['href']
if url.lower().startswith("//"):
url = "http:" + url
formatted_size = re.search('Size (.*),', unicode(item)).group(1).replace(u'\xa0', ' ')
size = helpers.piratesize(formatted_size)
if size < maxsize and minimumseeders < seeds and url != None: