fix: scrapeLang setta contentLanguage a ITA

This commit is contained in:
greko17
2019-09-24 14:28:17 +02:00
parent 31673889df
commit 6702aac0c2

View File

@@ -166,11 +166,10 @@ def scrapeLang(scraped, lang, longtitle):
## # nei siti dove la lingua è opzionale per il sub-ita e manca l'ita
## else:
## lang = 'ITA'
## if not language: language = lang
## if language: longtitle += typo(language, '_ [] color kod')
## if not language: language = lang
## if language: longtitle += typo(language, '_ [] color kod')
if not scraped['lang'] and not lang:
#pass
if not scraped['lang'] and lang == '':
language = 'ITA' # setta contentLanguage
elif not scraped['lang'] and lang:
# in caso di deflang attiva
@@ -241,6 +240,7 @@ 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 '')
lang, longtitle = scrapeLang(scraped, lang, longtitle)
if lang == '': lang = 'ITA'
# if title is set, probably this is a list of episodes or video sources