rimossi altri server x adulti
This commit is contained in:
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "https://www.bitporno.com/(?:e|embed)/([A-z0-9]+)",
|
|
||||||
"url": "https://www.bitporno.com/e/\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://www.bitporno.com/\\?v=([A-z0-9]+)",
|
|
||||||
"url": "https://www.bitporno.com/e/\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "raptu.com/(?:\\?v=|embed/|e/|v/)([A-z0-9]+)",
|
|
||||||
"url": "https://www.bitporno.com/e/\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "bitp",
|
|
||||||
"name": "bitp",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": "https://s26.postimg.cc/maiur9tmx/bitp1.png"
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
# Alfa addon - KODI Plugin
|
|
||||||
# Conector para bitporno
|
|
||||||
# https://github.com/alfa-addon
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
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).data
|
|
||||||
if "Object not found" in data or "no longer exists" in data or '"sources": [false]' in data:
|
|
||||||
return False, config.get_localized_string(70449) % "bitp"
|
|
||||||
|
|
||||||
return True, ""
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, user="", password="", video_password=""):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
videourl = scrapertools.find_multiple_matches(data, '<source src="([^"]+)".*?label="([^"]+)"')
|
|
||||||
scrapertools.printMatches(videourl)
|
|
||||||
for scrapedurl, scrapedquality in videourl:
|
|
||||||
if "loadthumb" in scrapedurl:
|
|
||||||
continue
|
|
||||||
scrapedurl = scrapedurl.replace("\\","")
|
|
||||||
video_urls.append([scrapedquality + " [bitp]", scrapedurl])
|
|
||||||
video_urls.sort(key=lambda it: int(it[0].split("p ", 1)[0]))
|
|
||||||
return video_urls
|
|
||||||
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.javbangers.com/video/[0-9]+/[A-z0-9-]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.fapnado.com/videos/[0-9]+/[A-z0-9-]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.xozilla.com/videos/[0-9]+/[A-z0-9-]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.camwhoresbay.com/videos/[0-9]+/[A-z0-9-]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
}, {
|
|
||||||
"pattern": "(https://www.analdin.com/es/videos/[0-9]+/[A-z0-9-]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.javbangers.com/embed/\\w+)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.pornrewind.com/embed/\\w+)",
|
|
||||||
"url": "\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://severeporn.com/embed/\\w+)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "javwhores",
|
|
||||||
"name": "javwhores",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# --------------------------------------------------------
|
|
||||||
# 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)
|
|
||||||
|
|
||||||
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, config.get_localized_string(70449) % "javwhores"
|
|
||||||
|
|
||||||
# global video_url, license_code
|
|
||||||
# video_url = scrapertools.find_single_match(response.data, "video_url: '([^']+)'")
|
|
||||||
# license_code = scrapertools.find_single_match(response.data, "license_code: '([^']+)'")
|
|
||||||
return True, ""
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
|
||||||
logger.info()
|
|
||||||
itemlist = []
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
if "video_url_text" in data:
|
|
||||||
patron = '(?:video_url|video_alt_url|video_alt_url[0-9]*):\s*\'([^\']+)\'.*?'
|
|
||||||
patron += '(?:video_url_text|video_alt_url_text|video_alt_url[0-9]*_text):\s*\'([^\']+)\''
|
|
||||||
else:
|
|
||||||
patron = 'video_url:\s*\'([^\']+)\'.*?'
|
|
||||||
patron += 'postfix:\s*\'([^\']+)\''
|
|
||||||
matches = re.compile(patron,re.DOTALL).findall(data)
|
|
||||||
for url,quality in matches:
|
|
||||||
itemlist.append(['%s' %quality, url])
|
|
||||||
logger.debug(quality + " : " + url)
|
|
||||||
|
|
||||||
return itemlist
|
|
||||||
# return [["[javwhores]", decode(video_url, license_code)]]
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "http://(www.nuvid.com)/embed/([0-9]+)",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "http://(www.drtuber.com)/embed/([0-9]+)",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "http://(www.iceporn.com)/embed/([0-9]+)",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "http://(www.viptube.com)/embed/([0-9]+)",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "http://(www.vivatube.com)/embed/([0-9]+)",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://(www.tubeon.com)/es/video/([0-9]+)/",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://(www.hd21.com)/es/video/([0-9]+)/",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://(www.yeptube.com)/es/video/([0-9]+)/",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "https://(www.winporn.com)/es/video/([0-9]+)/",
|
|
||||||
"url": "https://\\1/player_config_json/?vid=\\2&aid=0&domain_id=0&embed=0&ref=null&check_speed=0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "nuvid",
|
|
||||||
"name": "nuvid",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, video_password):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
server = scrapertools.find_single_match(page_url, 'https://www.([A-z0-9-]+).com')
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
data = scrapertools.find_single_match(data, '"files":(.*?)"quality"')
|
|
||||||
patron = '"([lh])q":"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality, scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/")
|
|
||||||
if "l" in quality: quality = "360p"
|
|
||||||
if "h" in quality: quality = "720p"
|
|
||||||
video_urls.append(["[%s] %s" %(server,quality), url])
|
|
||||||
return video_urls
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "https://embed.redtube.com/\\?id=([A-z0-9]+)",
|
|
||||||
"url": "https://es.redtube.com/\\1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pattern": "(https://es.redtube.com/[A-z0-9]+)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "redtube",
|
|
||||||
"name": "redtube",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# --------------------------------------------------------
|
|
||||||
# Conector redtube By Alfa development Group
|
|
||||||
# --------------------------------------------------------
|
|
||||||
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)
|
|
||||||
|
|
||||||
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, config.get_localized_string(70449) % "redtube"
|
|
||||||
return True, ""
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
|
||||||
logger.info()
|
|
||||||
video_urls = []
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
data = scrapertools.find_single_match(data,'mediaDefinition: \[(.*?)\]')
|
|
||||||
logger.debug(data)
|
|
||||||
patron = '"defaultQuality":.*?,"quality":"([^"]+)","videoUrl"\:"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality,scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/")
|
|
||||||
video_urls.append(["[redtube] %s" %quality, url])
|
|
||||||
return video_urls
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.tube8.com/[A-z0-9-+]+/[A-z0-9-]+/[0-9]+/)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "tube8",
|
|
||||||
"name": "tube8",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import config
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
def test_video_exists(page_url):
|
|
||||||
logger.info("(page_url='%s')" % 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, config.get_localized_string(70449) % "tube8"
|
|
||||||
return True, ""
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, video_password):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
patron = '"quality":(\d+),"videoUrl":"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality, scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/").replace("\u0026", "&")
|
|
||||||
video_urls.append(["[tube8] %sp" %quality, url])
|
|
||||||
return video_urls
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "https://www.tubeon.com/es/video/([0-9]+)/",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "tubeon",
|
|
||||||
"name": "tubeon",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, video_password):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
url = "https://www.tubeon.com/player_config_json/?vid=%s&aid=0&domain_id=0&embed=0&ref=null&check_speed=0" %page_url
|
|
||||||
data = httptools.downloadpage(url).data
|
|
||||||
data = scrapertools.find_single_match(data, '"files":(.*?)"quality"')
|
|
||||||
patron = '"([lh])q":"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality, scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/")
|
|
||||||
if "l" in quality: quality = "360"
|
|
||||||
if "h" in quality: quality = "720"
|
|
||||||
video_urls.append(["[tubeon] %s" %quality, url])
|
|
||||||
return video_urls
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "(https://www.tubst.net/embed/\\w+)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "tubst",
|
|
||||||
"name": "tubst",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# --------------------------------------------------------
|
|
||||||
# Conector tubst By Alfa development Group
|
|
||||||
# --------------------------------------------------------
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import config
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
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, config.get_localized_string(70449) % "tubst"
|
|
||||||
return True, ""
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
data = httptools.downloadpage(page_url).data
|
|
||||||
patron = """source src="([^"]+).*?res\s*='([^']+)"""
|
|
||||||
match = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for media_url, calidad in match:
|
|
||||||
title = "%s [tubst]" % (calidad)
|
|
||||||
video_urls.append([title, media_url, int(calidad)])
|
|
||||||
|
|
||||||
video_urls.sort(key=lambda x: x[2])
|
|
||||||
for video_url in video_urls:
|
|
||||||
video_url[2] = 0
|
|
||||||
logger.info("%s - %s" % (video_url[0], video_url[1]))
|
|
||||||
|
|
||||||
return video_urls
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "http://www.viptube.com/embed/([0-9]+)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "viptube",
|
|
||||||
"name": "viptube",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, video_password):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
url = "https://www.viptube.com/player_config_json/?vid=%s&aid=0&domain_id=0&embed=0&ref=null&check_speed=0" %page_url
|
|
||||||
data = httptools.downloadpage(url).data
|
|
||||||
data = scrapertools.find_single_match(data, '"files":(.*?)"quality"')
|
|
||||||
patron = '"([lh])q":"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality, scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/")
|
|
||||||
if "l" in quality: quality = "360"
|
|
||||||
if "h" in quality: quality = "720"
|
|
||||||
video_urls.append(["[viptube] %s" %quality, url])
|
|
||||||
return video_urls
|
|
||||||
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"active": true,
|
|
||||||
"find_videos": {
|
|
||||||
"ignore_urls": [],
|
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"pattern": "http://www.vivatube.com/embed/([0-9]+)",
|
|
||||||
"url": "\\1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"free": true,
|
|
||||||
"id": "vivatube",
|
|
||||||
"name": "vivatube",
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thumbnail": ""
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from core import httptools
|
|
||||||
from core import scrapertools
|
|
||||||
from platformcode import logger
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, video_password):
|
|
||||||
logger.info("(page_url='%s')" % page_url)
|
|
||||||
video_urls = []
|
|
||||||
url = "https://www.vivatube.com/player_config_json/?vid=%s&aid=0&domain_id=0&embed=0&ref=null&check_speed=0" %page_url
|
|
||||||
data = httptools.downloadpage(url).data
|
|
||||||
data = scrapertools.find_single_match(data, '"files":(.*?)"quality"')
|
|
||||||
patron = '"([lh])q":"([^"]+)"'
|
|
||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
|
||||||
for quality, scrapedurl in matches:
|
|
||||||
url = scrapedurl.replace("\/", "/")
|
|
||||||
if "l" in quality: quality = "360"
|
|
||||||
if "h" in quality: quality = "720"
|
|
||||||
video_urls.append(["[vivatube] %s" %quality, url])
|
|
||||||
return video_urls
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user