Fix altaCommunity e streamtape
This commit is contained in:
+1
-1
@@ -41,13 +41,13 @@
|
|||||||
"streamingcommunity": "https://streamingcommunity.vip",
|
"streamingcommunity": "https://streamingcommunity.vip",
|
||||||
"streamtime": "https://t.me/s/StreamTime",
|
"streamtime": "https://t.me/s/StreamTime",
|
||||||
"tantifilm": "https://www.tantifilm.stream",
|
"tantifilm": "https://www.tantifilm.stream",
|
||||||
|
"altadefinizionecommunity": "https://altaregistrazione.com",
|
||||||
"tapmovie": "https://it.tapmovie.net",
|
"tapmovie": "https://it.tapmovie.net",
|
||||||
"toonitalia": "https://toonitalia.co",
|
"toonitalia": "https://toonitalia.co",
|
||||||
"vvvvid": "https://www.vvvvid.it"
|
"vvvvid": "https://www.vvvvid.it"
|
||||||
},
|
},
|
||||||
"findhost": {
|
"findhost": {
|
||||||
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
|
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
|
||||||
"altadefinizionecommunity": "https://altaregistrazione.com",
|
|
||||||
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
||||||
"filmpertutti": "https://filmpertuttiii.nuovo.live"
|
"filmpertutti": "https://filmpertuttiii.nuovo.live"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ from platformcode import config, platformtools, logger
|
|||||||
from core import scrapertools, httptools
|
from core import scrapertools, httptools
|
||||||
|
|
||||||
|
|
||||||
def findhost(url):
|
# def findhost(url):
|
||||||
return support.match(url, patron=r'<a href="([^"]+)/\w+">Accedi').match
|
# 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'
|
register_url = 'https://altaregistrazione.com'
|
||||||
headers = {'Referer': host, 'x-requested-with': 'XMLHttpRequest'}
|
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',
|
film = ['/load-more-film?anno=&order=&support_webp=1&type=movie&page=1',
|
||||||
# Voce Menu,['url','action','args',contentType]
|
# 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',
|
tvshow = ['/load-more-film?type=tvshow&anno=&order=&support_webp=1&page=1',
|
||||||
# Voce Menu,['url','action','args',contentType]
|
# Voce Menu,['url','action','args',contentType]
|
||||||
('Generi Serie TV', ['', 'genres', 'genres']),
|
('Generi Serie TV', ['/film/movie', 'genres', 'genres']),
|
||||||
]
|
]
|
||||||
|
|
||||||
altri = [
|
altri = [
|
||||||
# ('A-Z', ['/lista-film', 'genres', 'letters']),
|
# ('A-Z', ['/lista-film', 'genres', 'letters']),
|
||||||
('Qualità', ['', 'genres', 'quality']),
|
('Qualità', ['/film/movie', 'genres', 'quality']),
|
||||||
('Anni', ['/anno', 'genres', 'years'])
|
('Anni', ['/anno', 'genres', 'years'])
|
||||||
]
|
]
|
||||||
search = ''
|
search = ''
|
||||||
@@ -200,8 +200,9 @@ def genres(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
logger.debug(item)
|
logger.debug(item)
|
||||||
|
# debug = True
|
||||||
data = item.data
|
data = item.data
|
||||||
patron = r'class="playtvshow " data-href="(?P<url>[^"]+)'
|
patron = r'class="playtvshow "\s+data-href="(?P<url>[^"]+)'
|
||||||
|
|
||||||
def itemHook(it):
|
def itemHook(it):
|
||||||
spl = it.url.split('/')[-2:]
|
spl = it.url.split('/')[-2:]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def test_video_exists(page_url):
|
|||||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||||
logger.debug("url=" + page_url)
|
logger.debug("url=" + page_url)
|
||||||
video_urls = []
|
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)
|
possible_url = js2py.eval_js(find_url)
|
||||||
url = "https:" + possible_url
|
url = "https:" + possible_url
|
||||||
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user