Fix altaCommunity e streamtape

This commit is contained in:
mac12m99
2021-09-07 20:54:10 +02:00
parent 87b205c50a
commit a286187235
3 changed files with 11 additions and 10 deletions

View File

@@ -41,13 +41,13 @@
"streamingcommunity": "https://streamingcommunity.vip",
"streamtime": "https://t.me/s/StreamTime",
"tantifilm": "https://www.tantifilm.stream",
"altadefinizionecommunity": "https://altaregistrazione.com",
"tapmovie": "https://it.tapmovie.net",
"toonitalia": "https://toonitalia.co",
"vvvvid": "https://www.vvvvid.it"
},
"findhost": {
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
"altadefinizionecommunity": "https://altaregistrazione.com",
"animealtadefinizione": "https://www.animealtadefinizione.it",
"filmpertutti": "https://filmpertuttiii.nuovo.live"
}

View File

@@ -8,11 +8,11 @@ from platformcode import config, platformtools, logger
from core import scrapertools, httptools
def findhost(url):
return support.match(url, patron=r'<a href="([^"]+)/\w+">Accedi').match
# def findhost(url):
# return support.match(url, patron=r'<a href="([^"]+)/\w+">Accedi').match
host = config.get_channel_url(findhost)
host = config.get_channel_url()
register_url = 'https://altaregistrazione.com'
headers = {'Referer': host, 'x-requested-with': 'XMLHttpRequest'}
@@ -23,17 +23,17 @@ def mainlist(item):
film = ['/load-more-film?anno=&order=&support_webp=1&type=movie&page=1',
# Voce Menu,['url','action','args',contentType]
('Generi Film', ['', 'genres', 'genres']),
('Generi Film', ['/film/movie', 'genres', 'genres']),
]
tvshow = ['/load-more-film?type=tvshow&anno=&order=&support_webp=1&page=1',
# Voce Menu,['url','action','args',contentType]
('Generi Serie TV', ['', 'genres', 'genres']),
('Generi Serie TV', ['/film/movie', 'genres', 'genres']),
]
altri = [
# ('A-Z', ['/lista-film', 'genres', 'letters']),
('Qualità', ['', 'genres', 'quality']),
('Qualità', ['/film/movie', 'genres', 'quality']),
('Anni', ['/anno', 'genres', 'years'])
]
search = ''
@@ -200,8 +200,9 @@ def genres(item):
@support.scrape
def episodios(item):
logger.debug(item)
# debug = True
data = item.data
patron = r'class="playtvshow " data-href="(?P<url>[^"]+)'
patron = r'class="playtvshow "\s+data-href="(?P<url>[^"]+)'
def itemHook(it):
spl = it.url.split('/')[-2:]
@@ -250,4 +251,4 @@ def resolve_url(item):
video_url = playWindow.match
item.data = playWindow.data
item.url = video_url.replace('/watch-unsubscribed', '/watch-external')
return item
return item

View File

@@ -30,7 +30,7 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug("url=" + page_url)
video_urls = []
find_url = match(data, patron=r'innerHTML = ([^;]+)').match
find_url = match(data, patron=r'innerHTML = ([^;]+)').matches[-1]
possible_url = js2py.eval_js(find_url)
url = "https:" + possible_url
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")