mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-23 03:47:45 +01:00
Url fix for pirate bay (credit to dsm1212)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user