traduzione server testvideo
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# by DrZ3r0
|
||||
|
||||
import urllib, re
|
||||
import urllib
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config, platformtools
|
||||
from platformcode import logger, config
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data or "to copyright issues" in data:
|
||||
return False, "[animeid] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "animeid"
|
||||
if "please+try+again+later." in data:
|
||||
return False, "[animeid] Error de animeid, no se puede generar el enlace al video"
|
||||
return True, ""
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import urllib
|
||||
|
||||
from core import httptools, jsontools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector ArchiveOrg By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[ArchiveOrg] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "ArchiveOrg"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Badshare By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +15,7 @@ def test_video_exists(page_url):
|
||||
global page
|
||||
page = httptools.downloadpage(page_url)
|
||||
if not page.sucess:
|
||||
return False, "[Badshare] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Badshare"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import time
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
headers = {'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36'}
|
||||
@@ -12,7 +13,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Archive no Encontrado" in data:
|
||||
return False, "[bdupload] El fichero ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "bdupload"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'}
|
||||
@@ -10,7 +10,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Archive no Encontrado" in data or "File has been removed" in data:
|
||||
return False, "[bitertv] El fichero ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "bitertv"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
# Conector para bitporno
|
||||
# https://github.com/alfa-addon
|
||||
# ------------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Object not found" in data or "no longer exists" in data or '"sources": [false]' in data:
|
||||
return False, "[bitp] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "bitp"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
# Conector Cinemaupload By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +14,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[CinemaUpload] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "CinemaUpload"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -23,7 +25,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
data = get_data(page_url.replace(".org", ".me"))
|
||||
if "File Not Found" in data: return False, "[Clicknupload] El archivo no existe o ha sido borrado"
|
||||
if "File Not Found" in data: return False, config.get_localized_string(70449) % "Clicknupload"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from builtins import range
|
||||
import sys
|
||||
|
||||
from builtins import range
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url).data
|
||||
|
||||
if 'Not Found' in data or 'File is no longer available' in data:
|
||||
return False, "[Datoporn] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Datoporn"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ else:
|
||||
import time
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config, logger
|
||||
from platformcode import platformtools
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import urllib
|
||||
import time
|
||||
import urllib
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config
|
||||
from lib import jsunpack
|
||||
from platformcode import logger, config
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector DoStream By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[Dostream] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Dostream"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def test_video_exists(page_url):
|
||||
if "please+try+again+later." in data:
|
||||
return False, "[Downace] Error de downace, no se puede generar el enlace al video"
|
||||
if "File has been removed due to inactivity" in data:
|
||||
return False, "[Downace] El archivo ha sido removido por inactividad"
|
||||
return False, config.get_localized_string(70449) % "Downace"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -10,7 +11,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
|
||||
return False, "[eporner] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "eporner"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Estream By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +15,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if data.code == 404:
|
||||
return False, "[Estream] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Estream"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if "Object not found" in data.data or "longer exists on our servers" in data.data:
|
||||
return False, "[Fastplay] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Fastplay"
|
||||
if data.code == 500:
|
||||
return False, "[Fastplay] Error interno del servidor"
|
||||
return True, ""
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
from platformcode import logger, config
|
||||
@@ -8,7 +9,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Sorry 404 not found" in data or "This video is unavailable" in data or "Sorry this video is unavailable:" in data:
|
||||
return False, "[fembed] El fichero ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "fembed"
|
||||
page_url = page_url.replace("/f/","/v/")
|
||||
page_url = page_url.replace("/v/","/api/source/")
|
||||
data = httptools.downloadpage(page_url, post={}).data
|
||||
|
||||
@@ -2,17 +2,18 @@
|
||||
# -*- Server Fex -*-
|
||||
# -*- Created for Alfa-addon -*-
|
||||
# -*- By the Alfa Develop Group -*-
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
data = httptools.downloadpage(page_url, follow_redirects=False)
|
||||
|
||||
if data.code == 404:
|
||||
return False, "[Fex] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Fex"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
# -*- Server Filebebo -*-
|
||||
# -*- Created for Alfa-addon -*-
|
||||
# -*- By the Alfa Develop Group -*-
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -20,7 +21,7 @@ def test_video_exists(page_url):
|
||||
data = get_source(page_url)
|
||||
|
||||
if "File was deleted" in data or "File Not Found" in data:
|
||||
return False, "[Filebebo] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Filebebo"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url).data
|
||||
|
||||
if "File was deleted" in data:
|
||||
return False, "[FilesCDN] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "FilesCDN"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools, scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
data = ""
|
||||
@@ -11,7 +12,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = resp.data
|
||||
if resp.code == 404 or '<b>File Not Found</b>' in resp.data or "<b>File is no longer available" in resp.data:
|
||||
return False, "[flix555] El video no está disponible"
|
||||
return False, config.get_localized_string(70449) % "flix555"
|
||||
return True, ""
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -32,13 +34,13 @@ def test_video_exists(page_url):
|
||||
global DATA
|
||||
DATA = data
|
||||
if "images/proced.png" in data:
|
||||
return False, "[Gamovideo] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Gamovideo"
|
||||
if "File was deleted" in data or ("Not Found" in data and not "|mp4|" in data) or "File was locked by administrator" in data:
|
||||
return False, "[Gamovideo] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Gamovideo"
|
||||
if "Video is processing now" in data:
|
||||
return False, "[Gamovideo] El video está procesándose en estos momentos. Inténtelo mas tarde."
|
||||
if "File is awaiting for moderation" in data:
|
||||
return False, "[Gamovideo] El video está esperando por moderación."
|
||||
return False, config.get_localized_string(70449) % "Gamovideo"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
|
||||
return False, "[Mixdrop] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Mixdrop"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -25,7 +27,7 @@ def test_video_exists(page_url):
|
||||
page = response
|
||||
|
||||
if "no+existe" in response.data or 'no existe.</p>' in response.data:
|
||||
return False, "[gvideo] El video no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "gvideo"
|
||||
if "Se+ha+excedido+el" in response.data:
|
||||
return False, "[gvideo] Se ha excedido el número de reproducciones permitidas"
|
||||
if "No+tienes+permiso" in response.data:
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools, scrapertools
|
||||
from platformcode import config, logger
|
||||
import base64
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config, logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Idtbox By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import re
|
||||
from core import httptools, scrapertools
|
||||
from platformcode import logger, platformtools
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
data = ""
|
||||
def test_video_exists(page_url):
|
||||
@@ -14,7 +15,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if not data.sucess or "Not Found" in data.data or "File was deleted" in data.data or "is no longer available" in data.data:
|
||||
return False, "[Idtbox] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Idtbox"
|
||||
|
||||
data = data.data
|
||||
return True, ""
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
# Conector javwhores By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
response = httptools.downloadpage(page_url)
|
||||
@@ -14,7 +17,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[javwhores] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "javwhores"
|
||||
|
||||
# global video_url, license_code
|
||||
# video_url = scrapertools.find_single_match(response.data, "video_url: '([^']+)'")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "The file you were looking for could not be found" in data:
|
||||
return False, "[jawcloud] El archivo ha ido borrado"
|
||||
return False, config.get_localized_string(70449) % "jawcloud"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector jetload By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import re
|
||||
from core import httptools, jsontools
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
video_urls = []
|
||||
@@ -16,7 +16,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = response.data
|
||||
if not response.sucess or "Not Found" in data or "File was deleted" in data or "is no longer available" in data:
|
||||
return False, "[jetload] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "jetload"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector jplayer By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -16,7 +18,6 @@ else:
|
||||
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -24,7 +25,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data or "to copyright issues" in data:
|
||||
return False, "[jplayer] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "jplayer"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -9,7 +10,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
|
||||
return False, "[keezmovies] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "keezmovies"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector mangoplay By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data or "to copyright issues" in data:
|
||||
return False, "[mangoplay] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "mangoplay"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
# --------------------------------------------------------
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
server = {'1': 'http://www.mangovideo.pw/contents/videos/', '7' : 'http://server9.mangovideo.pw/contents/videos/',
|
||||
@@ -22,7 +23,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[mangovideo] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "mangovideo"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,11 +2,14 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector manyvideos By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import base64
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
import base64
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -16,7 +19,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[manyvideos] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "manyvideos"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Invalid or Deleted File" in data or "Well, looks like we" in data:
|
||||
return False, "[Mediafire] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Mediafire"
|
||||
if "File Removed for Violation" in data:
|
||||
return False, "[Mediafire] Archivo eliminado por infracción"
|
||||
return True, ""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def test_video_exists(page_url):
|
||||
if "please+try+again+later." in data:
|
||||
return False, "[Megadrive] Error de Megadrive, no se puede generar el enlace al video"
|
||||
if "File has been removed due to inactivity" in data:
|
||||
return False, "[Megadrive] El archivo ha sido removido por inactividad"
|
||||
return False, config.get_localized_string(70449) % "Megadrive"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if data == "File was deleted" or data == '':
|
||||
return False, "[mp4upload] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "mp4upload"
|
||||
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
# --------------------------------------------------------
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
response = httptools.downloadpage(page_url)
|
||||
@@ -14,7 +16,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[mydaddy] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "mydaddy"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector myupload By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import base64
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
import base64
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -15,7 +18,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[myupload] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "myupload"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -30,7 +32,7 @@ def test_video_exists(page_url):
|
||||
page_url = page_url.replace("/watch_video.php?v=", "/player/embed_player.php?vid=")
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "var userid = '';" in data.lower():
|
||||
return False, "[netutv] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "netutv"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import urllib
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config, logger
|
||||
import ast
|
||||
from core import support
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
# --------------------------------------------------------
|
||||
|
||||
import os
|
||||
|
||||
from core import httptools
|
||||
from platformcode import logger, config
|
||||
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector pornhub By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ def test_video_exists(page_url):
|
||||
or "removed" in response.data \
|
||||
or not "defaultQuality" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[pornhub] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "pornhub"
|
||||
return True, ""
|
||||
|
||||
def get_video_url(page_url, user="", password="", video_password=""):
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector pornrewind By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
from lib.kt_player import decode
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -17,7 +16,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[pornrewind] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "pornrewind"
|
||||
|
||||
global video_url, license_code
|
||||
video_url = scrapertools.find_single_match(response.data, "video_url: '([^']+)'")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
@@ -25,7 +25,7 @@ def test_video_exists(page_url):
|
||||
if data == "File was deleted" or data == '':
|
||||
return False, "[powvideo] El video ha sido borrado"
|
||||
if 'function(p,a,c,k,e,' not in data:
|
||||
return False, "[powvideo] El video no está disponible"
|
||||
return False, config.get_localized_string(70449) % "powvideo"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Prostream By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "File is no longer available" in data:
|
||||
return False, "[Prostream] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Prostream"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Rcdnme By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if "Object not found" in data.data or "longer exists on our servers" in data.data:
|
||||
return False, "[Rcdnme] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Rcdnme"
|
||||
if data.code == 500:
|
||||
return False, "[Rcdnme] Error interno del servidor"
|
||||
return True, ""
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
# --------------------------------------------------------
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
response = httptools.downloadpage(page_url)
|
||||
@@ -14,7 +16,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[redtube] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "redtube"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
# -*- Server Rutube -*-
|
||||
# -*- Created for Alfa-addon -*-
|
||||
# -*- By the Alfa Develop Group -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -17,7 +19,6 @@ else:
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
from core import jsontools
|
||||
|
||||
@@ -33,7 +34,7 @@ def test_video_exists(page_url):
|
||||
data = get_source(page_url)
|
||||
|
||||
if "File was deleted" in data or "File Not Found" in data:
|
||||
return False, "[Rutube] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Rutube"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Samaup By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Not Found" in data or "File was deleted" in data:
|
||||
return False, "[Samaup] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Samaup"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector para streamcherry
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def test_video_exists(page_url):
|
||||
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "We are unable to find the video" in data:
|
||||
return False, "[streamcherry] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "streamcherry"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -18,9 +20,9 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url, headers={'Referer': referer}).data
|
||||
if data == "File was deleted":
|
||||
return False, "[Streamplay] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Streamplay"
|
||||
elif "Video is processing now" in data:
|
||||
return False, "[Streamplay] El archivo se está procesando"
|
||||
return False, config.get_localized_string(70449) % "Streamplay"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Streamty By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Not Found" in data or "File was deleted" in data:
|
||||
return False, "[Streamty] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Streamty"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
from lib import jsunpack
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def get_video_url(page_url, video_password):
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import ast
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config, logger
|
||||
import ast
|
||||
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
global data
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
@@ -12,7 +13,7 @@ def test_video_exists(page_url):
|
||||
if "Video not found..." in data or "Video removed due to copyright" in data:
|
||||
return False, config.get_localized_string(70292) % "Thevid"
|
||||
if "Video removed for inactivity..." in data:
|
||||
return False, "[Thevid] El video ha sido removido por inactividad"
|
||||
return False, config.get_localized_string(70449) % "Thevid"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector thevideobee By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data or "to copyright issues" in data:
|
||||
return False, "[thevideobee] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "thevideobee"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ else:
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# -*- Server Thevimeo -*-
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
from platformcode import config
|
||||
|
||||
|
||||
def get_source(url):
|
||||
@@ -18,7 +17,7 @@ def test_video_exists(page_url):
|
||||
data = get_source(page_url)
|
||||
|
||||
if "File was deleted" in data or "File Not Found" in data:
|
||||
return False, "[Thevimeo] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Thevimeo"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Conector vidcloud By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[Cloud] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Cloud"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
#from builtins import str
|
||||
from builtins import range
|
||||
import sys
|
||||
|
||||
# from builtins import str
|
||||
from builtins import range
|
||||
|
||||
PY3 = False
|
||||
VFS = True
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int; VFS = False
|
||||
@@ -15,7 +17,6 @@ else:
|
||||
import urllib
|
||||
|
||||
import time
|
||||
import threading
|
||||
import os
|
||||
import traceback
|
||||
import re
|
||||
@@ -31,7 +32,6 @@ from core import filetools
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from core import jsontools
|
||||
from core.item import Item
|
||||
from platformcode import logger
|
||||
from platformcode import config
|
||||
from platformcode import platformtools
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -9,7 +10,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "<h2>WE ARE SORRY</h2>" in data or '<title>404 Not Found</title>' in data:
|
||||
return False, "[tube8] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "tube8"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector tubst By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
response = httptools.downloadpage(page_url)
|
||||
if not response.sucess or "Not Found" in response.data or "File was deleted" in response.data or "is no longer available" in response.data:
|
||||
return False, "[tubst] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "tubst"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import urllib
|
||||
import time
|
||||
import urllib
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector tusfiles By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data or "to copyright issues" in data:
|
||||
return False, "[tusfiles] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "tusfiles"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector uploadmp4 By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data:
|
||||
return False, "[uploadmp4] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "uploadmp4"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
# -*- Server Uppom -*-
|
||||
# -*- Created for Alfa-addon -*-
|
||||
# -*- By the Alfa Develop Group -*-
|
||||
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +13,7 @@ def test_video_exists(page_url):
|
||||
data = get_source(page_url)
|
||||
|
||||
if "File was deleted" in data or "File Not Found" in data:
|
||||
return False, "[Uppom] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Uppom"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import logger, config
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -25,7 +27,7 @@ def test_video_exists(page_url):
|
||||
return True, ""
|
||||
elif "Unfortunately, the file you want is not available." in data or "Unfortunately, the video you want to see is not available" in data or "This stream doesn" in data\
|
||||
or "Page not found" in data:
|
||||
return False, "[Uptobox] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Uptobox"
|
||||
wait = scrapertools.find_single_match(data, "You have to wait ([0-9]+) (minute|second)")
|
||||
if len(wait) > 0:
|
||||
tiempo = wait[1].replace("minute", "minuto/s").replace("second", "segundos")
|
||||
|
||||
@@ -2,11 +2,13 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector UpVID By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import base64
|
||||
import re
|
||||
|
||||
import re, base64
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib.aadecode import decode as aadecode
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,9 +16,9 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[upvid] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "upvid"
|
||||
if "<title>video is no longer available" in data.data:
|
||||
return False, "[upvid] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "upvid"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Uqload By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +15,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if data.code == 404:
|
||||
return False, "[Uqload] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Uqload"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import sys
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
@@ -20,7 +21,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "File was deleted" in data or "Page Cannot Be Found" in data or "<title>Video not found" in data:
|
||||
return False, "[vevio] El archivo ha sido eliminado o no existe"
|
||||
return False, config.get_localized_string(70449) % "vevio"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector vidbull By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
from lib.kt_player import decode
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
from lib.kt_player import decode
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -17,7 +18,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[vidbull] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "vidbull"
|
||||
|
||||
global video_url, license_code
|
||||
video_url = scrapertools.find_single_match(response.data, "video_url: '([^']+)'")
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector videobb By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "no longer exists" in data:
|
||||
return False, "[videobb] El video ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "videobb"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
# Conector para videobin
|
||||
# https://github.com/alfa-addon
|
||||
# ------------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "borrado" in data or "Deleted" in data:
|
||||
return False, "[videobin] El fichero ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "videobin"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Videofiles By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import re
|
||||
|
||||
import re, time
|
||||
from core import httptools, scrapertools
|
||||
from platformcode import logger, platformtools
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
data = ""
|
||||
def test_video_exists(page_url):
|
||||
@@ -14,7 +15,7 @@ def test_video_exists(page_url):
|
||||
data = httptools.downloadpage(page_url)
|
||||
|
||||
if not data.sucess or "Not Found" in data.data or "File was deleted" in data.data or "is no longer available" in data.data:
|
||||
return False, "[Videofiles] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Videofiles"
|
||||
global data
|
||||
data = data.data
|
||||
return True, ""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector Videoz By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Not Found" in data or "File was deleted" in data:
|
||||
return False, "[Videoz] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Videoz"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector vidfast By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
import re
|
||||
from core import httptools, jsontools
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
video_urls = []
|
||||
@@ -16,7 +16,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = response.data
|
||||
if not response.sucess or "Not Found" in data or "File was deleted" in data or "is no longer available" in data:
|
||||
return False, "[vidfast] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "vidfast"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
# Conector para vidlox
|
||||
# https://github.com/alfa-addon
|
||||
# ------------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "borrado" in data or "Deleted" in data:
|
||||
return False, "[vidlox] El fichero ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "vidlox"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
from core import scrapertools
|
||||
@@ -11,7 +12,7 @@ def test_video_exists(page_url):
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "Page not found" in data or "File was deleted" in data:
|
||||
return False, "[vidoza] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "vidoza"
|
||||
elif "processing" in data:
|
||||
return False, config.get_localized_string(70449) % "Vidoza"
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
from lib import jsunpack
|
||||
from platformcode import logger
|
||||
|
||||
id_server = "vidtodo"
|
||||
response = ""
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -22,7 +24,7 @@ def test_video_exists(page_url):
|
||||
page = httptools.downloadpage(page_url)
|
||||
url = page.url
|
||||
if "Not Found" in page.data or "/404" in url:
|
||||
return False, "[Vidup] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Vidup"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from lib import jsunpack
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
response = httptools.downloadpage(page_url)
|
||||
if not response.sucess:
|
||||
return False, "[Vidzi] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Vidzi"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config, logger
|
||||
@@ -9,7 +10,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if '"title":"Video Not Found"' in data:
|
||||
return False, "[Vimple] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Vimple"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
# --------------------------------------------------------
|
||||
# Conector vipporns By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
from lib.kt_player import decode
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
from lib.kt_player import decode
|
||||
|
||||
def test_video_exists(page_url):
|
||||
|
||||
@@ -17,7 +18,7 @@ def test_video_exists(page_url):
|
||||
"Not Found" in response.data \
|
||||
or "File was deleted" in response.data \
|
||||
or "is no longer available" in response.data:
|
||||
return False, "[vipporns] El fichero no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "vipporns"
|
||||
|
||||
global video_url, license_code
|
||||
video_url = scrapertools.find_single_match(response.data, "video_url: '([^']+)'")
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Conector Vivo By Alfa development Group
|
||||
# --------------------------------------------------------
|
||||
|
||||
import base64
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url)
|
||||
if data.code == 404:
|
||||
return False, "[Vivo] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Vivo"
|
||||
return True, ""
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user