Pulizia di codice vecchio, piccole migliorie

This commit is contained in:
mac12m99
2021-03-17 18:33:56 +01:00
parent eeeacffed5
commit dce5d75b99
5 changed files with 7 additions and 41 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ def scrapeLang(scraped, lang, longtitle):
# e credo sia utile per filtertools
language = ''
if scraped['lang']:
if scraped.get('lang'):
if 'ita' in scraped['lang'].lower(): language = 'ITA'
if 'sub' in scraped['lang'].lower(): language = 'Sub-' + language