From 900325186b76627f3173847a35101b444683a41c Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 28 Apr 2014 20:03:02 -0700 Subject: [PATCH] Url fix for pirate bay (credit to dsm1212) --- headphones/searcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headphones/searcher.py b/headphones/searcher.py index c1aee71a..f4b8ada7 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -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: