1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

fix for issues #321 and 258

This commit is contained in:
echel0n 2014-05-03 05:22:50 -07:00
parent 6ee60d213a
commit 16441c0582
4 changed files with 3 additions and 4 deletions

View File

@ -40,7 +40,6 @@ def fixStupidEncodings(x, silent=False):
logger.DEBUG if silent else logger.ERROR)
return None
return None
def fixListEncodings(x):

View File

@ -971,7 +971,7 @@ def get_show_by_name(name):
sickbeard.name_cache.addNameToCache(name, indexerid if indexerid else 0)
if indexerid:
logger.log(u"Found Indexer ID:[" + repr(indexerid) + "], using that for [" + name + "}",logger.DEBUG)
logger.log(u"Found Indexer ID:[" + repr(indexerid) + "], using that for [" + str(name) + "}",logger.DEBUG)
if not showObj:
showObjList = [x for x in sickbeard.showList if x.indexerid == indexerid]
if len(showObjList):

View File

@ -360,7 +360,7 @@ class HDTorrentsCache(tvcache.TVCache):
if not title or not url:
return None
logger.log(u"Adding item to cache: " + title, logger.DEBUG)
logger.log(u"Adding item to cache: " + str(title), logger.DEBUG)
return self._addCacheEntry(title, url)

View File

@ -142,7 +142,7 @@ class PublicHDProvider(generic.TorrentProvider):
#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)])
try:
soup = BeautifulSoup(html, features=["html5lib", "permissive"])