)?'\
- '
\s+
[^"]+)".*?strong>[ ]'\
- '(?P.+?)[ ](?P\d+-\d+|\d+)[ ](?:-\s+(?P.+?))?'\
- '[ ]?(?:(?PSub-ITA))?[ ]?'
+ patronBlock = r'(?:Stagione|STAGIONE)\s*(?P[^<]+)?(?:)?(?P.*?)'
+ patron = r'(?:p>|/>)(?P[^–]+)–(?P.*?)(?:
]+>','', item.title)
+ return item
return locals()
@support.scrape
def category(item):
- support.info()
-
action = 'peliculas'
patron = r'[^"]+)".*?>(?P.*?)'
-
return locals()
@@ -111,41 +102,28 @@ def newest(categoria):
except:
import sys
for line in sys.exc_info():
- support.info("{0}".format(line))
+ logger.error("{0}".format(line))
return []
return itemlist
def findvideos(item):
- support.info()
+ logger.debug()
if item.args == 'update':
itemlist = []
item.infoLabels['mediatype'] = 'episode'
- data = httptools.downloadpage(item.url, headers=headers).data
- data = re.sub('\n|\t', ' ', data)
- data = re.sub(r'>\s+<', '> <', data)
- url_video = scrapertools.find_single_match(data, r' ', -1)
- url_serie = scrapertools.find_single_match(data, r'')
+ data = support.match(item.url, headers=headers).data
+ url_video = support.match(data, patron=r' ').matches
+ url_serie = support.match(data, patron=r'').matches
goseries = support.typo("Vai alla Serie:", ' bold')
series = support.typo(item.contentSerieName, ' bold color kod')
itemlist = support.server(item, data=url_video)
- itemlist.append(
- Item(channel=item.channel,
- title=goseries + series,
- fulltitle=item.fulltitle,
- show=item.show,
- contentType='tvshow',
- contentSerieName=item.contentSerieName,
- url=url_serie,
- action='episodios',
- contentTitle=item.contentSerieName,
- plot = goseries + series + "con tutte le puntate",
- ))
+ itemlist.append(item.clone(title=goseries + series, contentType='tvshow', url=url_serie, action='episodios', plot = goseries + series + "con tutte le puntate"))
return itemlist
else:
- return support.server(item, data=item.url)
+ return support.server(item, data=item.data)
diff --git a/channels/metalvideo.py b/channels/metalvideo.py
index 7db2eb3a..441b4922 100644
--- a/channels/metalvideo.py
+++ b/channels/metalvideo.py
@@ -13,7 +13,7 @@ headers = {'X-Requested-With': 'XMLHttpRequest'}
def mainlist(item):
item.url = host
action = 'peliculas'
- patronBlock = r'\s*[^"]+)"(?: class="")?>(?P
[^<]+)<'
def itemHook(item):
item.thumbnail = support.thumb('music')
@@ -24,7 +24,7 @@ def mainlist(item):
itemlist.append(
support.Item(
channel=item.channel,
- title=support.typo('Cerca...', 'bold color kod'),
+ title=support.typo('Cerca...', 'bold'),
contentType='music',
url=item.url,
action='search',
diff --git a/core/support.py b/core/support.py
index 84360377..c8422456 100755
--- a/core/support.py
+++ b/core/support.py
@@ -1392,7 +1392,7 @@ def thumb(item_itemlist_string=None, genre=False, live=False):
'_tvshow':['serie','tv', 'fiction']}
def autoselect_thumb(item, genre):
- logger.debug('SPLIT',re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()))
+ # logger.debug('SPLIT',re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()))
if genre == False:
for thumb, titles in icon_dict.items():
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()) for word in search):
diff --git a/servers/doodstream.py b/servers/doodstream.py
index 519b38ba..42f2cc01 100644
--- a/servers/doodstream.py
+++ b/servers/doodstream.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-import re, time
+import re, time
from lib import js2py
from core import httptools, scrapertools
from platformcode import logger, config
@@ -21,28 +21,17 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
# from core.support import dbg;dbg()
global data
logger.debug("URL", page_url)
-
- video_urls = list()
- host = "https://dood.to"
+ # from core.support import dbg;dbg()
+ video_urls = []
+ host = scrapertools.find_single_match(page_url, r'http[s]?://[^/]+')
new_url = scrapertools.find_single_match(data, r'