- animealtadefinizione
 - animeforce
 - animeleggendari
 - animesaturn
 - animeunity
 - cb01anime
This commit is contained in:
Alhaziel01
2020-11-25 20:16:13 +01:00
parent a815b2a877
commit 872cad2903
7 changed files with 21 additions and 18 deletions
+3 -2
View File
@@ -353,7 +353,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
AC = name
break
else: AC = action
if (scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
if (not scraped['title'] or scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
contentType = 'episode' if function == 'episodios' else CT if CT else item.contentType
it = Item(
channel=item.channel,
@@ -391,7 +392,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
def html_uniform(data):
"""
"""
replace all ' with " and eliminate newline, so we don't need to worry about
"""
return re.sub("='([^']+)'", '="\\1"', data.replace('\n', ' ').replace('\t', ' ').replace(' ', ' '))