From 6702aac0c2a844c6f4cf7bbb18a327ae63ea0a20 Mon Sep 17 00:00:00 2001 From: greko17 Date: Tue, 24 Sep 2019 14:28:17 +0200 Subject: [PATCH] fix: scrapeLang setta contentLanguage a ITA --- core/support.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/support.py b/core/support.py index 91bcd973..144738d0 100644 --- a/core/support.py +++ b/core/support.py @@ -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