[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&]*img src="([a-zA-Z:\/\.0-9\-_]*)[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&]*alt="([A-Za-z ,:0-9\.À-ÖØ-öø-ÿ\-\']*)[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&,#]*
([A-Za-z ,0-9\.À-ÖØ-öø-ÿ\-\']*)'
- matches = re.compile(patron, re.DOTALL).findall(data)
- for scrapedthumbnail, scrapedtitle, scrapedinfo in matches:
- # for scrapedthumbnail, scrapedtitle, scrapedtv in matches:
- scrapedurl = ""
- scrapedtitle = scrapertools.decodeHtmlentities(scrapedtitle).strip()
- infoLabels = {}
- infoLabels["plot"] = scrapedinfo
- itemlist.append(
- Item(channel=item.channel,
- action="do_search",
- extra=urllib.quote_plus(scrapedtitle) + '{}' + 'movie',
- title="[B]" + scrapedtitle + "[/B]",
- fulltitle="[B]" + scrapedtitle + "[/B]",
- url=scrapedurl,
- thumbnail=scrapedthumbnail,
- contentTitle=scrapedtitle,
- contentType='movie',
- infoLabels=infoLabels,
- folder=True))
-
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
-
- return itemlist
-
-
-def ratings(item):
- logger.info("filmontv tvoggi")
- itemlist = []
-
- # Carica la pagina
- data = httptools.downloadpage(item.url).data
- patron = r'
[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&]*img src="([a-zA-Z:\/\.0-9\-_]*)[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&]*alt="([A-Za-z ,0-9:\.À-ÖØ-öø-ÿ\-\']*)[a-z \n<>\/="_\-:0-9;A-Z.?!\'\&,#]*
([A-Za-z ,0-9\.À-ÖØ-öø-ÿ\-\']*)'
- matches = re.compile(patron, re.DOTALL).findall(data)
- for scrapedthumbnail, scrapedtitle, scrapedinfo in matches:
- # for scrapedthumbnail, scrapedtitle, scrapedtv in matches:
- scrapedurl = ""
- scrapedtitle = scrapertools.decodeHtmlentities(scrapedtitle).strip()
- infoLabels = {}
- infoLabels["plot"] = scrapedinfo
- itemlist.append(
- Item(channel=item.channel,
- action="do_search",
- extra=urllib.quote_plus(scrapedtitle) + '{}' + 'movie',
- title="[B]" + scrapedtitle + "[/B]",
- fulltitle="[B]" + scrapedtitle + "[/B]",
- url=scrapedurl,
- thumbnail=scrapedthumbnail,
- contentTitle=scrapedtitle,
- contentType='movie',
- infoLabels=infoLabels,
- folder=True))
-
- tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
-
- return itemlist
-
-
-
-def do_search(item):
- from specials import search
- return search.do_search(item)
diff --git a/specials/search.py b/specials/search.py
index 50b6e2e8..b0aa0489 100644
--- a/specials/search.py
+++ b/specials/search.py
@@ -32,8 +32,6 @@ def mainlist(item):
itemlist.append(Item(channel=item.channel, action="sub_menu", title="[B]" + config.get_localized_string(70305)+ "[/B]", context=context,
thumbnail=get_thumb("search.png")))
itemlist.append(Item(channel="filmontv", action="mainlist", title=config.get_localized_string(50001),
- thumbnail=get_thumb("on_the_air.png"), viewmode="thumbnails"))
- itemlist.append(Item(channel="netlovers", action="mainlist", title="Net Lovers",
thumbnail=get_thumb("on_the_air.png"), viewmode="thumbnails"))
itemlist.append(Item(channel=item.channel, action='genres_menu', title=config.get_localized_string(70306), type='movie',
thumbnail=get_thumb("genres.png")))