Fix scrapeLang
This commit is contained in:
@@ -166,7 +166,7 @@ def scrapeLang(scraped, lang, longtitle):
|
||||
if not language: language = lang
|
||||
if language: longtitle += typo(language, '_ [] color kod')
|
||||
|
||||
return lang, longtitle
|
||||
return language, longtitle
|
||||
|
||||
def cleantitle(title):
|
||||
cleantitle = scrapertoolsV2.htmlclean(scrapertoolsV2.decodeHtmlentities(title).replace('"', "'").replace('×', 'x').replace('–', '-')).strip()
|
||||
@@ -214,13 +214,6 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
||||
longtitle = typo(longtitle, 'bold')
|
||||
longtitle += (typo(Type,'_ () bold') if Type else '') + (typo(quality, '_ [] color kod') if quality else '')
|
||||
|
||||
# # per togliere la voce [ITA] da liste che non siano titoli (es.: genere)
|
||||
# if action != 'peliculas':
|
||||
# lang, longtitle = scrapeLang(scraped, lang, longtitle)
|
||||
# else:
|
||||
# longtitle = longtitle.replace('[ITA]','')
|
||||
# lang = ''
|
||||
|
||||
lang, longtitle = scrapeLang(scraped, lang, longtitle)
|
||||
|
||||
# if title is set, probably this is a list of episodes or video sources
|
||||
|
||||
Reference in New Issue
Block a user