From ceffb74c73f7d17656582d3699f31f9327749bc7 Mon Sep 17 00:00:00 2001 From: thepasto Date: Sat, 13 Apr 2019 13:37:54 +0200 Subject: [PATCH] Fixes to fit scrapertools changes --- .../channels/altadefinizionehd.py | 2 +- plugin.video.alfa/channels/animeforce.py | 2 +- plugin.video.alfa/channels/animesubita.py | 2 +- plugin.video.alfa/channels/animetubeita.py | 2 +- plugin.video.alfa/channels/animeworld.py | 4 ++-- plugin.video.alfa/channels/casacinema.py | 4 ++-- plugin.video.alfa/channels/cb01anime.py | 4 ++-- plugin.video.alfa/channels/cineblog01.py | 6 +++--- plugin.video.alfa/channels/cineblog01blog.py | 4 ++-- plugin.video.alfa/channels/cinemastreaming.py | 2 +- plugin.video.alfa/channels/cinemasubito.py | 2 +- .../channels/cinetecadibologna.py | 2 +- .../channels/documentaristreamingda.py | 2 +- plugin.video.alfa/channels/dreamsub.py | 6 +++--- plugin.video.alfa/channels/eurostreaming.py | 6 +++--- plugin.video.alfa/channels/fastsubita.py | 2 +- plugin.video.alfa/channels/filmgratis.py | 8 ++++---- plugin.video.alfa/channels/filmperevolvere.py | 2 +- plugin.video.alfa/channels/filmpertutti.py | 6 +++--- plugin.video.alfa/channels/filmzstreaming.py | 2 +- plugin.video.alfa/channels/guardarefilm.py | 2 +- .../channels/guardaserieclick.py | 8 ++++---- .../channels/ilgeniodellostreaming.py | 4 ++-- plugin.video.alfa/channels/istitutoluce.py | 2 +- plugin.video.alfa/channels/italiafilm.py | 6 +++--- plugin.video.alfa/channels/italiaserie.py | 2 +- plugin.video.alfa/channels/marapcana.py | 4 ++-- plugin.video.alfa/channels/mondolunatico.py | 2 +- .../channels/mondolunatico_new.py | 2 +- plugin.video.alfa/channels/mondoserietv.py | 2 +- .../channels/occhiodelwrestling.py | 2 +- plugin.video.alfa/channels/qwertty.py | 2 +- plugin.video.alfa/channels/serietvu.py | 2 +- plugin.video.alfa/channels/support.py | 10 +++++----- plugin.video.alfa/channels/tantifilm.py | 2 +- plugin.video.alfa/channels/umsfunsub.py | 4 ++-- plugin.video.alfa/channels/vedohd.py | 4 ++-- plugin.video.alfa/servers/wstream.py | 19 +++++++++---------- 38 files changed, 74 insertions(+), 75 deletions(-) diff --git a/plugin.video.alfa/channels/altadefinizionehd.py b/plugin.video.alfa/channels/altadefinizionehd.py index e44139ac..932b21c5 100644 --- a/plugin.video.alfa/channels/altadefinizionehd.py +++ b/plugin.video.alfa/channels/altadefinizionehd.py @@ -83,7 +83,7 @@ def menu(item): logger.info("[altadefinizionehd.py] DATA"+data) patron = r'
  • Film per anno(.*?)') patron = r'
  • ([^"]+)
  • ' matches = re.compile(patron, re.DOTALL).findall(blocco) diff --git a/plugin.video.alfa/channels/cinemastreaming.py b/plugin.video.alfa/channels/cinemastreaming.py index 770820e1..62466479 100644 --- a/plugin.video.alfa/channels/cinemastreaming.py +++ b/plugin.video.alfa/channels/cinemastreaming.py @@ -39,7 +39,7 @@ def video(item): # Carica la pagina data = httptools.downloadpage(item.url, headers=headers).data - block = scrapertools.get_match(data, r'
    (.*?)<\/main>') + block = scrapertools.find_single_match(data, r'
    (.*?)<\/main>') block = re.sub('\t|\n', '', block) patron = r'.*?.*?src="([^"]+)".*?>.*?

    ([^<]+)<\/h3>(.*?)<\/article>' diff --git a/plugin.video.alfa/channels/cinemasubito.py b/plugin.video.alfa/channels/cinemasubito.py index b080c58f..9f2e1faa 100644 --- a/plugin.video.alfa/channels/cinemasubito.py +++ b/plugin.video.alfa/channels/cinemasubito.py @@ -97,7 +97,7 @@ def categorias(item): # Carica la pagina data = httptools.downloadpage(item.url, headers=headers).data - bloque = scrapertools.get_match(data, '

    Genere

    (.*?)
  • ') + bloque = scrapertools.find_single_match(data, '

    Genere

    (.*?)
  • ') # Estrae i contenuti patron = r'' diff --git a/plugin.video.alfa/channels/cinetecadibologna.py b/plugin.video.alfa/channels/cinetecadibologna.py index 08be2c1b..eab59e07 100644 --- a/plugin.video.alfa/channels/cinetecadibologna.py +++ b/plugin.video.alfa/channels/cinetecadibologna.py @@ -90,7 +90,7 @@ def epoche(item): data = httptools.downloadpage(item.url, headers=headers).data # Narrow search by selecting only the combo - bloque = scrapertools.get_match(data, '

    Epoche

    (.*?)') + bloque = scrapertools.find_single_match(data, '

    Epoche

    (.*?)') # The categories are the options for the combo patron = '
    (.*?)<' diff --git a/plugin.video.alfa/channels/documentaristreamingda.py b/plugin.video.alfa/channels/documentaristreamingda.py index 758c9f4a..4dd43d76 100644 --- a/plugin.video.alfa/channels/documentaristreamingda.py +++ b/plugin.video.alfa/channels/documentaristreamingda.py @@ -62,7 +62,7 @@ def categorias(item): # Carica la pagina data = httptools.downloadpage(item.url).data - bloque = scrapertools.get_match(data, 'Categorie
  • (.*?)') + bloque = scrapertools.find_single_match(data, 'Categorie(.*?)') # Estrae i contenuti patron = '([^<]+)' diff --git a/plugin.video.alfa/channels/dreamsub.py b/plugin.video.alfa/channels/dreamsub.py index 8de0238c..0a38ed23 100644 --- a/plugin.video.alfa/channels/dreamsub.py +++ b/plugin.video.alfa/channels/dreamsub.py @@ -67,7 +67,7 @@ def serietv(item): # Carica la pagina data = httptools.downloadpage(item.url).data - bloque = scrapertools.get_match(data, + bloque = scrapertools.find_single_match(data, '(.*?)\s*[^>]+>[^>]+>[^>]+>[^>]+>' patron += r'[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>([^<]+)

    ' @@ -132,7 +132,7 @@ def serietvaggiornate(item): itemlist = [] data = httptools.downloadpage(item.url, headers=headers).data - blocco = scrapertools.get_match(data, + blocco = scrapertools.find_single_match(data, r'(.*?)]+> ]+>[^>]+>' @@ -168,7 +168,7 @@ def categorie(item): itemlist = [] data = httptools.downloadpage(item.url, headers=headers).data - blocco = scrapertools.get_match(data, r'(.*?)') + blocco = scrapertools.find_single_match(data, r'(.*?)') patron = r'
  • \s*]+>([^<]+)
  • ' matches = re.compile(patron, re.DOTALL).findall(blocco) @@ -196,7 +196,7 @@ def lista_serie(item): data = httptools.downloadpage(item.url, headers=headers).data patron = r'\s*[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>([^<]+)

    ' - blocco = scrapertools.get_match(data, + blocco = scrapertools.find_single_match(data, r'(.*?)') matches = re.compile(patron, re.DOTALL).findall(blocco) diff --git a/plugin.video.alfa/channels/ilgeniodellostreaming.py b/plugin.video.alfa/channels/ilgeniodellostreaming.py index 2a080585..df7e2e57 100644 --- a/plugin.video.alfa/channels/ilgeniodellostreaming.py +++ b/plugin.video.alfa/channels/ilgeniodellostreaming.py @@ -97,7 +97,7 @@ def categorias(item): # Carica la pagina data = httptools.downloadpage(item.url).data - bloque = scrapertools.get_match(data, '
      (.*?)
    ') + bloque = scrapertools.find_single_match(data, '
      (.*?)
    ') # Estrae i contenuti patron = ']+>]+>(.*?)' @@ -226,7 +226,7 @@ def nuoviep(item): # Carica la pagina data = httptools.downloadpage(item.url).data - #blocco = scrapertools.get_match(data, + #blocco = scrapertools.find_single_match(data, # r'
    (.*?)
    ') # Estrae i contenuti diff --git a/plugin.video.alfa/channels/istitutoluce.py b/plugin.video.alfa/channels/istitutoluce.py index fccfa9b2..acf8249a 100644 --- a/plugin.video.alfa/channels/istitutoluce.py +++ b/plugin.video.alfa/channels/istitutoluce.py @@ -52,7 +52,7 @@ def categorie(item): itemlist = [] data = httptools.downloadpage(item.url, headers=headers).data - bloque = scrapertools.get_match(data, '
    (.*?)
    ([^<]+)' matches = re.compile(patron, re.DOTALL).findall(bloque) diff --git a/plugin.video.alfa/channels/mondolunatico.py b/plugin.video.alfa/channels/mondolunatico.py index b257588f..1a6c5f46 100644 --- a/plugin.video.alfa/channels/mondolunatico.py +++ b/plugin.video.alfa/channels/mondolunatico.py @@ -67,7 +67,7 @@ def categorias(item): data = httptools.downloadpage(item.url).data # Narrow search by selecting only the combo - bloque = scrapertools.get_match(data, '