removed servers, channels, new feature from settings, language channel can be splited "castellano" and "latino" channels

This commit is contained in:
alfa_addon_10
2017-09-26 20:34:04 +02:00
parent 020beb5521
commit dc84e16b81
175 changed files with 215 additions and 2012 deletions
-48
View File
@@ -1,48 +0,0 @@
{
"active": false,
"changes": [
{
"date": "25/03/2016",
"description": "Versión incial"
}
],
"find_videos": {
"ignore_urls": [],
"patterns": [
{
"pattern": "http://www.fileserve.com/file/([A-Z0-9a-z]{7}])",
"url": "http://www.fileserve.com/file/\\1"
}
]
},
"free": false,
"id": "fileserve",
"name": "fileserve",
"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
}
],
"version": 1
}
-53
View File
@@ -1,53 +0,0 @@
# -*- coding: utf-8 -*-
import re
from core import scrapertools
from platformcode import logger
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
# Existe: http://www.fileserve.com/file/E5Y5R5E
# No existe:
data = scrapertools.cache_page(page_url)
patron = '<div class="panel file_download">[^<]+<img src="/images/down_arrow.gif"[^<]+<h1>([^<]+)<'
matches = re.compile(patron, re.DOTALL).findall(data)
if len(matches) > 0:
return True, ""
else:
patron = '<li class="title"><h1>(File not available)</h1>'
matches = re.compile(patron, re.DOTALL).findall(data)
if len(matches) > 0:
return False, "El archivo ya no está disponible<br/>en fileserve o ha sido borrado"
return True, ""
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.info("(page_url='%s')" % page_url)
video_urls = []
if premium:
# Accede a la home para precargar la cookie
data = scrapertools.cache_page("http://fileserve.com/index.php")
# Hace el login
url = "http://fileserve.com/login.php"
post = "loginUserName=%s&loginUserPassword=%s&autoLogin=on&ppp=102&loginFormSubmit=Login" % (user, password)
data = scrapertools.cache_page(url, post=post)
location = scrapertools.get_header_from_response(page_url, header_to_get="location")
logger.info("location=" + location)
if location.startswith("http"):
extension = location[-4:]
video_urls.append(["%s (Premium) [fileserve]" % extension, location])
for video_url in video_urls:
logger.info("%s - %s" % (video_url[0], video_url[1]))
return video_urls