vidlox: Nuevo server
Nuevo server
This commit is contained in:
49
plugin.video.alfa/servers/vidlox.json
Normal file
49
plugin.video.alfa/servers/vidlox.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"active": true,
|
||||
"changes": [
|
||||
{
|
||||
"date": "03/08/2017",
|
||||
"description": "Versión inicial"
|
||||
}
|
||||
],
|
||||
"find_videos": {
|
||||
"ignore_urls": [],
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "https://vidlox.tv/embed-.*?.html",
|
||||
"url": "\\1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"free": true,
|
||||
"id": "vidlox",
|
||||
"name": "vidlox",
|
||||
"settings": [
|
||||
{
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"id": "black_list",
|
||||
"label": "Incluir en lista negra",
|
||||
"type": "bool",
|
||||
"visible": true
|
||||
},
|
||||
{
|
||||
"default": 0,
|
||||
"enabled": true,
|
||||
"id": "favorites_servers_list",
|
||||
"label": "Incluir en lista de favoritos",
|
||||
"lvalues": [
|
||||
"No",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5"
|
||||
],
|
||||
"type": "list",
|
||||
"visible": false
|
||||
}
|
||||
],
|
||||
"thumbnail": "https://s1.postimg.org/wathgtvin/logo-vidlox1.png",
|
||||
"version": 1
|
||||
}
|
||||
32
plugin.video.alfa/servers/vidlox.py
Normal file
32
plugin.video.alfa/servers/vidlox.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# ------------------------------------------------------------
|
||||
# Alfa addon - KODI Plugin
|
||||
# Conector para vidlox
|
||||
# https://github.com/alfa-addon
|
||||
# ------------------------------------------------------------
|
||||
|
||||
from core import httptools
|
||||
from core import logger
|
||||
from core import scrapertools
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if "borrado" in data:
|
||||
return False, "[vidlox] El fichero ha sido borrado"
|
||||
|
||||
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
|
||||
bloque = scrapertools.find_single_match(data, 'sources:.\[.*?]')
|
||||
matches = scrapertools.find_multiple_matches(bloque, '(http.*?)"')
|
||||
for videourl in matches:
|
||||
extension = extension = scrapertools.get_filename_from_url(videourl)[-4:]
|
||||
video_urls.append(["%s [vidlox]" %extension, videourl])
|
||||
|
||||
return video_urls
|
||||
Reference in New Issue
Block a user