fix: migliorie altadefinizione01_L e modifica a support

This commit is contained in:
greko17
2019-09-06 12:02:00 +02:00
parent e151f0977e
commit b876679619
3 changed files with 16 additions and 92 deletions
+6 -3
View File
@@ -153,13 +153,16 @@ def scrape2(item, patron = '', listGroups = [], headers="", blacklist="", data="
def scrapeLang(scraped, lang, longtitle):
## Aggiunto/modificato per gestire i siti che hanno i video
## in ita e subita delle serie tv nella stessa pagina
# altrimenti dopo un sub-ita mette tutti quelli a seguire in sub-ita
# e credo sia utile per filtertools
lang = 'ITA'
if scraped['lang']:
if 'sub' in scraped['lang'].lower():
lang = 'Sub-ITA'
elif 'ita' in scraped['lang'].lower():
lang = 'ITA'
if lang != '':
longtitle += typo(lang, '_ [] color kod')
longtitle += typo(lang, '_ [] color kod')
return lang, longtitle
@@ -951,4 +954,4 @@ def channel_config(item, itemlist):
def extract_wrapped(decorated):
from types import FunctionType
closure = (c.cell_contents for c in decorated.__closure__)
return next((c for c in closure if isinstance(c, FunctionType)), None)
return next((c for c in closure if isinstance(c, FunctionType)), None)