From 1c751fc1b7eb286cf7e106c82e42568023ab50d8 Mon Sep 17 00:00:00 2001 From: Intel1 Date: Sat, 4 Aug 2018 12:42:12 -0500 Subject: [PATCH] Actualizados 1 animeflv.me: desactivado, no funciona la web peliculasrey: desactivado, no funciona la web yaske: desactivado, no funciona la web httptools: fix error certificado SSL strings.po: fix languages adnstream: eliminado, no existe server bitvidsx: eliminado, no existe server cloudy: eliminado, no existe server thevideome: fix vshare: update test_video_exists --- plugin.video.alfa/channels/animeflv_me.json | 2 +- plugin.video.alfa/channels/peliculasrey.json | 2 +- plugin.video.alfa/channels/yaske.json | 2 +- plugin.video.alfa/core/httptools.py | 18 ++++++++ .../resources/language/English/strings.po | 2 +- .../resources/language/Italian/strings.po | 4 +- .../language/Spanish (Argentina)/strings.po | 8 ---- .../resources/language/Spanish/strings.po | 8 ---- plugin.video.alfa/servers/adnstream.json | 41 ----------------- plugin.video.alfa/servers/adnstream.py | 30 ------------- plugin.video.alfa/servers/bitvidsx.json | 45 ------------------- plugin.video.alfa/servers/bitvidsx.py | 40 ----------------- plugin.video.alfa/servers/cloudy.json | 42 ----------------- plugin.video.alfa/servers/cloudy.py | 29 ------------ plugin.video.alfa/servers/thevideome.json | 2 +- plugin.video.alfa/servers/thevideome.py | 25 +++++------ plugin.video.alfa/servers/vshare.json | 4 ++ plugin.video.alfa/servers/vshare.py | 11 ++--- 18 files changed, 44 insertions(+), 271 deletions(-) delete mode 100755 plugin.video.alfa/servers/adnstream.json delete mode 100755 plugin.video.alfa/servers/adnstream.py delete mode 100755 plugin.video.alfa/servers/bitvidsx.json delete mode 100755 plugin.video.alfa/servers/bitvidsx.py delete mode 100755 plugin.video.alfa/servers/cloudy.json delete mode 100755 plugin.video.alfa/servers/cloudy.py diff --git a/plugin.video.alfa/channels/animeflv_me.json b/plugin.video.alfa/channels/animeflv_me.json index 65784f01..96f16b74 100755 --- a/plugin.video.alfa/channels/animeflv_me.json +++ b/plugin.video.alfa/channels/animeflv_me.json @@ -1,7 +1,7 @@ { "id": "animeflv_me", "name": "Animeflv.ME", - "active": true, + "active": false, "adult": false, "language": ["cast", "lat"], "thumbnail": "http://i.imgur.com/x9AdvBx.png", diff --git a/plugin.video.alfa/channels/peliculasrey.json b/plugin.video.alfa/channels/peliculasrey.json index 91c439fd..bd922f63 100755 --- a/plugin.video.alfa/channels/peliculasrey.json +++ b/plugin.video.alfa/channels/peliculasrey.json @@ -1,7 +1,7 @@ { "id": "peliculasrey", "name": "peliculasrey", - "active": true, + "active": false, "adult": false, "language": ["cast", "lat"], "thumbnail": "peliculasrey.png", diff --git a/plugin.video.alfa/channels/yaske.json b/plugin.video.alfa/channels/yaske.json index a28e4e4f..8b9ad9d4 100644 --- a/plugin.video.alfa/channels/yaske.json +++ b/plugin.video.alfa/channels/yaske.json @@ -1,7 +1,7 @@ { "id": "yaske", "name": "Yaske", - "active": true, + "active": false, "adult": false, "language": ["cast", "lat"], "banner": "yaske.png", diff --git a/plugin.video.alfa/core/httptools.py b/plugin.video.alfa/core/httptools.py index ba6ddde2..53b71b97 100755 --- a/plugin.video.alfa/core/httptools.py +++ b/plugin.video.alfa/core/httptools.py @@ -3,6 +3,24 @@ # httptools # -------------------------------------------------------------------------------- + +# Fix para error de validación del certificado del tipo: +# [downloadpage] Response code: +# [downloadpage] Response error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) +# Fix desde la página: https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error +#----------------------------------------------------------------------- +import ssl +try: + _create_unverified_https_context = ssl._create_unverified_context +except AttributeError: + # Legacy Python that doesn't verify HTTPS certificates by default + pass +else: + # Handle target environment that doesn't support HTTPS verification + ssl._create_default_https_context = _create_unverified_https_context +#----------------------------------------------------------------------- + + import inspect import cookielib import gzip diff --git a/plugin.video.alfa/resources/language/English/strings.po b/plugin.video.alfa/resources/language/English/strings.po index 0e80ca92..896330e6 100644 --- a/plugin.video.alfa/resources/language/English/strings.po +++ b/plugin.video.alfa/resources/language/English/strings.po @@ -846,7 +846,7 @@ msgid "Enter URL" msgstr "" msgctxt "#60089" -msgid "Enter the URL [Link to server / download]" +msgid "Enter the URL [Link to server/download]" msgstr "" msgctxt "#60090" diff --git a/plugin.video.alfa/resources/language/Italian/strings.po b/plugin.video.alfa/resources/language/Italian/strings.po index bdd6c4f6..4b2dea28 100644 --- a/plugin.video.alfa/resources/language/Italian/strings.po +++ b/plugin.video.alfa/resources/language/Italian/strings.po @@ -834,8 +834,8 @@ msgid "Enter URL" msgstr "Inserisci URL" msgctxt "#60089" -msgid "Enter the URL [Link to server / download]" -msgstr "Inserire l'URL [Link a server / download]" +msgid "Enter the URL [Link to server/download]" +msgstr "Inserire l'URL [Link a server/download]" msgctxt "#60090" msgid "Enter the URL [Direct link to video]." diff --git a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po index 2f4be12c..9ad733fc 100644 --- a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po @@ -3845,14 +3845,6 @@ msgctxt "#70288" msgid "Configure Downloads" msgstr "Configurar Descargas" -msgctxt "#70289" -msgid "Alfa\nCorrected an error in the adult section, the password has been reset to " -msgstr "Alfa\nCorregido un error en la seccion adultos, se ha reseteado la contrasena a por " - -msgctxt "#70290" -msgid "default, you will have to change it again if you want.\ n Type 's', if you have understood it: " -msgstr "defecto, tendra que cambiarla de nuevo si lo desea.\n Escriba 's', si lo ha entendido: " - msgctxt "#70291" msgid "Error, during conversion" msgstr "Error, en conversión" diff --git a/plugin.video.alfa/resources/language/Spanish/strings.po b/plugin.video.alfa/resources/language/Spanish/strings.po index 2f4be12c..9ad733fc 100644 --- a/plugin.video.alfa/resources/language/Spanish/strings.po +++ b/plugin.video.alfa/resources/language/Spanish/strings.po @@ -3845,14 +3845,6 @@ msgctxt "#70288" msgid "Configure Downloads" msgstr "Configurar Descargas" -msgctxt "#70289" -msgid "Alfa\nCorrected an error in the adult section, the password has been reset to " -msgstr "Alfa\nCorregido un error en la seccion adultos, se ha reseteado la contrasena a por " - -msgctxt "#70290" -msgid "default, you will have to change it again if you want.\ n Type 's', if you have understood it: " -msgstr "defecto, tendra que cambiarla de nuevo si lo desea.\n Escriba 's', si lo ha entendido: " - msgctxt "#70291" msgid "Error, during conversion" msgstr "Error, en conversión" diff --git a/plugin.video.alfa/servers/adnstream.json b/plugin.video.alfa/servers/adnstream.json deleted file mode 100755 index 1f601daa..00000000 --- a/plugin.video.alfa/servers/adnstream.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "active": true, - "find_videos": { - "ignore_urls": [], - "patterns": [ - { - "pattern": "adnstream.com/video/([a-zA-Z]+)", - "url": "http://www.adnstream.com/video/\\1/" - } - ] - }, - "free": true, - "id": "adnstream", - "name": "adnstream", - "settings": [ - { - "default": false, - "enabled": true, - "id": "black_list", - "label": "@60654", - "type": "bool", - "visible": true - }, - { - "default": 0, - "enabled": true, - "id": "favorites_servers_list", - "label": "@60655", - "lvalues": [ - "No", - "1", - "2", - "3", - "4", - "5" - ], - "type": "list", - "visible": false - } - ] -} \ No newline at end of file diff --git a/plugin.video.alfa/servers/adnstream.py b/plugin.video.alfa/servers/adnstream.py deleted file mode 100755 index c45810a0..00000000 --- a/plugin.video.alfa/servers/adnstream.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- - -from core import scrapertools -from platformcode import logger - - -def get_video_url(page_url, premium=False, user="", password="", video_password=""): - logger.info("(page_url='%s')" % page_url) - - # Saca el código del vídeo - if page_url.startswith("http://"): - try: - code = scrapertools.get_match(page_url, "http\://www.adnstream.com/video/([a-zA-Z]+)/") - except: - code = scrapertools.get_match(page_url, "http\://www.adnstream.tv/video/([a-zA-Z]+)/") - else: - code = page_url - - # Lee la playlist - url = "http://www.adnstream.com/get_playlist.php?lista=video¶m=" + code + "&c=463" - data = scrapertools.cache_page(url) - - # Extrae la URL - media_url = scrapertools.get_match(data, "([^<]+)") - video_urls = [[scrapertools.get_filename_from_url(media_url)[-4:] + ' [adnstream]', media_url]] - - for video_url in video_urls: - logger.info("%s - %s" % (video_url[0], video_url[1])) - - return video_urls diff --git a/plugin.video.alfa/servers/bitvidsx.json b/plugin.video.alfa/servers/bitvidsx.json deleted file mode 100755 index ea44abcc..00000000 --- a/plugin.video.alfa/servers/bitvidsx.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "active": true, - "find_videos": { - "ignore_urls": [], - "patterns": [ - { - "pattern": "(http://www.(?:videoweed|bitvid)\\.[a-z]+/file/[a-zA-Z0-9]+)", - "url": "\\1" - }, - { - "pattern": "(http://embed.(?:videoweed|bitvid)\\.[a-z]+/embed.php?v=[a-zA-Z0-9]+)", - "url": "\\1" - } - ] - }, - "free": true, - "id": "bitvidsx", - "name": "bitvidsx", - "settings": [ - { - "default": false, - "enabled": true, - "id": "black_list", - "label": "@60654", - "type": "bool", - "visible": true - }, - { - "default": 0, - "enabled": true, - "id": "favorites_servers_list", - "label": "@60655", - "lvalues": [ - "No", - "1", - "2", - "3", - "4", - "5" - ], - "type": "list", - "visible": false - } - ] -} \ No newline at end of file diff --git a/plugin.video.alfa/servers/bitvidsx.py b/plugin.video.alfa/servers/bitvidsx.py deleted file mode 100755 index 5968a550..00000000 --- a/plugin.video.alfa/servers/bitvidsx.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from core import httptools -from core import scrapertools -from platformcode import logger - - -def test_video_exists(page_url): - logger.info("(page_url='%s')" % page_url) - - data = httptools.downloadpage(page_url).data - - if "This video is not yet ready" in data: - return False, "[Bitvid] El fichero está en proceso todavía o ha sido eliminado" - - return True, "" - - -def get_video_url(page_url, premium=False, user="", password="", video_password=""): - logger.info("(page_url='%s')" % page_url) - data = httptools.downloadpage(page_url).data - - video_urls = [] - videourls = scrapertools.find_multiple_matches(data, 'src\s*:\s*[\'"]([^\'"]+)[\'"]') - if not videourls: - videourls = scrapertools.find_multiple_matches(data, '