diff --git a/channels/tantifilm.py b/channels/tantifilm.py index a9b048c4..898c639a 100644 --- a/channels/tantifilm.py +++ b/channels/tantifilm.py @@ -2,72 +2,227 @@ # ------------------------------------------------------------ # Canale per Tantifilm # ------------------------------------------------------------ -""" - - Trasformate le sole def per support.menu e support.scrape - da non inviare nel test. - Test solo a trasformazione completa - -""" import re import urlparse -from core import scrapertoolsV2, httptools, tmdb, support +from core import scrapertoolsV2, httptools, tmdb, support,servertools from core.item import Item -from core.support import menu, log, aplay +from core.support import menu, log from platformcode import logger from specials import autorenumber -from platformcode import config +from platformcode import config, unify +from lib.unshortenit import unshorten_only +from lib import unshortenit + +host = '' +headers = '' +def findhost(): + global host, headers + permUrl = httptools.downloadpage('https://www.tantifilm.info/', follow_redirects=False).data + host = scrapertoolsV2.find_single_match(permUrl, r'
(?P