mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
fix for issues #321 and 258
This commit is contained in:
parent
6ee60d213a
commit
16441c0582
4 changed files with 3 additions and 4 deletions
|
@ -40,7 +40,6 @@ def fixStupidEncodings(x, silent=False):
|
|||
logger.DEBUG if silent else logger.ERROR)
|
||||
return None
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def fixListEncodings(x):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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"])
|
||||
|
||||
|
|
Loading…
Reference in a new issue