mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Improvements to PublicHD provider code
This commit is contained in:
parent
fad6876e4f
commit
049282ccb9
1 changed files with 8 additions and 2 deletions
|
@ -139,7 +139,13 @@ class PublicHDProvider(generic.TorrentProvider):
|
|||
urllib.quote(unidecode(search_string)), ';'.join(self.categories[mode]))
|
||||
logger.log(u"Search string: " + searchURL, logger.DEBUG)
|
||||
|
||||
|
||||
html = self.getURL(searchURL)
|
||||
|
||||
#remove unneccecary <option> lines which are slowing down BeautifulSoup
|
||||
optreg = re.compile(r'<option.*</option>')
|
||||
html = os.linesep.join([s for s in html.splitlines() if not optreg.search(s)])
|
||||
|
||||
if not html:
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue