diff --git a/channels/0example.py.txt b/channels/0example.py.txt index 40f8d6ed..2d5bb5ea 100644 --- a/channels/0example.py.txt +++ b/channels/0example.py.txt @@ -48,7 +48,7 @@ from core import support from platformcode import config # in caso di necessità -#from core import scrapertoolsV2, httptools, servertools, tmdb +#from core import scrapertools, httptools, servertools, tmdb from core.item import Item # per newest #from lib import unshortenit @@ -74,7 +74,7 @@ def findhost(): permUrl = httptools.downloadpage('INSERIRE-URL-QUI', follow_redirects=False).headers host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '') # cancellare host non utilizzato - host = scrapertoolsV2.find_single_match(permUrl, r'
(?:.+?[Ss]tagione\s)?(?:(?P')
+ url = scrapertools.find_single_match(data, '
')
# Carica la pagina
data = httptools.downloadpage(url, headers=headers).data.replace("'", '"')
diff --git a/channels/fastsubita.py b/channels/fastsubita.py
index 6acad4aa..b022c94e 100644
--- a/channels/fastsubita.py
+++ b/channels/fastsubita.py
@@ -16,7 +16,7 @@
- SOLO SUB-ITA
"""
-from core import support, httptools, scrapertoolsV2
+from core import support, httptools, scrapertools
from core.item import Item
from core.support import log
from platformcode import config
@@ -158,7 +158,7 @@ def findvideos(item):
data = httptools.downloadpage(item.url).data
patron = r'>Posted in (.*?)')
+ patronBlock = scrapertools.find_single_match(data, r'class="taxonomy category" >(.*?)
')
if patronBlock.lower() != 'film':
support.log('select = ### è una serie ###')
item.contentType='tvshow'
diff --git a/channels/hdblog.json b/channels/hdblog.json
deleted file mode 100644
index a352408c..00000000
--- a/channels/hdblog.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "id": "hdblog",
- "name": "Hdblog",
- "language": ["ita"],
- "active": true,
- "adult": false,
- "thumbnail": "http://css.hd-cdn.it/new_files/templates/theme_darklight/img/logos_wt/logohdhardware.png",
- "banner": "http://css.hd-cdn.it/new_files/templates/theme_darklight/img/logos_wt/logohdhardware.png",
- "categories": ["documentary"],
- "settings": [
- {
- "id": "include_in_global_search",
- "type": "bool",
- "label": "Includi in Ricerca Globale",
- "default": false,
- "enabled": false,
- "visible": false
- },
- {
- "id": "include_in_newest_documentales",
- "type": "bool",
- "label": "Includi in Novità - Documentari",
- "default": true,
- "enabled": true,
- "visible": true
- },
- {
- "id": "include_in_newest_italiano",
- "type": "bool",
- "label": "Includi in Novità - Italiano",
- "default": true,
- "enabled": true,
- "visible": true
- }
- ]
-}
-
diff --git a/channels/hdblog.py b/channels/hdblog.py
deleted file mode 100644
index c52e4266..00000000
--- a/channels/hdblog.py
+++ /dev/null
@@ -1,94 +0,0 @@
-# -*- coding: utf-8 -*-
-# ------------------------------------------------------------
-# Ringraziamo Icarus crew
-# Canale hdblog
-# ------------------------------------------------------------
-import re
-import urlparse
-
-from core import httptools, scrapertools
-from core.item import Item
-from platformcode import logger
-from platformcode import config
-
-host = "https://www.hdblog.it"
-
-
-def mainlist(item):
- logger.info("kod.hdblog mainlist")
- itemlist = [Item(channel=item.channel,
- title="[COLOR azure]Video recensioni tecnologiche[/COLOR]",
- action="peliculas",
- url=host + "/video/",
- thumbnail="http://www.crat-arct.org/uploads/images/tic%201.jpg"),
- Item(channel=item.channel,
- title="[COLOR azure]Categorie[/COLOR]",
- action="categorias",
- url=host + "/video/",
- thumbnail="http://www.crat-arct.org/uploads/images/tic%201.jpg")]
-
- return itemlist
-
-
-def categorias(item):
- logger.info("kod.hdblog categorias")
- itemlist = []
-
- data = httptools.downloadpage(item.url).data
- logger.info(data)
-
- # Narrow search by selecting only the combo
- start = data.find(']+>\s*\s*[^>]+>\s*(.*?)\s*<'
- matches = re.compile(patron, re.DOTALL).findall(data)
- scrapertools.printMatches(matches)
-
- for scrapedurl, scrapedthumbnail, scrapedtitle in matches:
- scrapedtitle = scrapertools.decodeHtmlentities(scrapedtitle)
- scrapedplot = ""
- itemlist.append(Item(channel=item.channel, action="findvideos", fulltitle=scrapedtitle, show=scrapedtitle,
- title=scrapedtitle, url=scrapedurl, thumbnail=scrapedthumbnail, plot=scrapedplot,
- folder=True))
-
- # Paginazione
- patronvideos = '[^>]+>[^=]+="next" href="(.*?)" class="inattiva">'
- matches = re.compile(patronvideos, re.DOTALL).findall(data)
- scrapertools.printMatches(matches)
-
- if len(matches) > 0:
- scrapedurl = urlparse.urljoin(item.url, matches[0])
- itemlist.append(
- Item(channel=item.channel, action="peliculas", title="[COLOR orange]Avanti >>[/COLOR]", url=scrapedurl,
- folder=True))
-
- return itemlist
diff --git a/channels/ilgeniodellostreaming.py b/channels/ilgeniodellostreaming.py
index 10defaf6..3cbb560e 100644
--- a/channels/ilgeniodellostreaming.py
+++ b/channels/ilgeniodellostreaming.py
@@ -33,7 +33,7 @@
import re
-from core import scrapertoolsV2, httptools, support
+from core import scrapertools, httptools, support
from core.support import log
from core.item import Item
from platformcode import config
@@ -216,7 +216,7 @@ def findvideos(item):
matches, data = support.match(item, '