Fix nomi corretti nei server
This commit is contained in:
+19
-13
@@ -188,17 +188,23 @@ def findvideos(item):
|
|||||||
resp = support.match(get_data(item), headers=headers, patron=r'data-name="(\d+)">([^<]+)<')
|
resp = support.match(get_data(item), headers=headers, patron=r'data-name="(\d+)">([^<]+)<')
|
||||||
data = resp.data
|
data = resp.data
|
||||||
for ID, name in resp.matches:
|
for ID, name in resp.matches:
|
||||||
if 'vvvvid' in name.lower():
|
if not item.number: item.number = support.match(item.title, patron=r'(\d+) -').match
|
||||||
urls.append(support.match(host + '/api/episode/serverPlayer?id=' + item.url.split('/')[-1].split('?')[0], headers=headers, patron=r'<a.*?href="([^"]+)"').match)
|
match = support.match(data, patronBlock=r'data-name="' + ID + r'"[^>]+>(.*?)<div class="(?:server|download)', patron=r'data-id="([^"]+)" data-episode-num="' + (item.number if item.number else '1') + '"' + r'.*?href="([^"]+)"').match
|
||||||
elif 'streamtape' in name.lower():
|
if match:
|
||||||
urls.append(support.match(data, patron=r'<a href="(https://streamtape[^"]+)"').match)
|
epID, epurl = match
|
||||||
elif 'beta' in name.lower():
|
if 'vvvvid' in name.lower():
|
||||||
urls.append(support.match(data, patron=r'<a href="(https://animeworld[^"]+)"').match)
|
urls.append(support.match(host + '/api/episode/serverPlayer?id=' + epID, headers=headers, patron=r'<a.*?href="([^"]+)"').match)
|
||||||
elif 'server 2' in name.lower():
|
elif 'streamtape' in name.lower():
|
||||||
dataJson = support.match(host + '/api/episode/info?id=' + item.url.split('/')[-1].split('?')[0] +'&alt=0', headers=headers).data
|
urls.append(support.match(data, patron=r'<a href="(https://streamtape[^"]+)"').match)
|
||||||
json = jsontools.load(dataJson)
|
elif 'beta' in name.lower():
|
||||||
itemlist.append(item.clone(action="play", title=name, url=json['grabber'], server='directo'))
|
urls.append(support.match(data, patron=r'<a href="(https://animeworld[^"]+)"').match)
|
||||||
elif 'animeworld' in name.lower():
|
elif 'server 2' in name.lower():
|
||||||
url = support.match(resp.data, patron=r'href="([^"]+)"\s*id="alternativeDownloadLink"', headers=headers).match
|
dataJson = support.match(host + '/api/episode/info?id=' + epID + '&alt=0', headers=headers).data
|
||||||
itemlist.append(item.clone(action="play", title=name, url=url, server='directo'))
|
json = jsontools.load(dataJson)
|
||||||
|
title = support.match(json['grabber'], patron=r'server2.([^.]+)', string=True).match
|
||||||
|
itemlist.append(item.clone(action="play", title=title, url=json['grabber'], server='directo'))
|
||||||
|
elif 'animeworld' in name.lower():
|
||||||
|
url = support.match(data, patron=r'href="([^"]+)"\s*id="alternativeDownloadLink"', headers=headers).match
|
||||||
|
title = support.match(url, patron=r'http[s]?://(?:www.)?([^.]+)', string=True).match
|
||||||
|
itemlist.append(item.clone(action="play", title=title, url=url, server='directo'))
|
||||||
return support.server(item, urls, itemlist)
|
return support.server(item, urls, itemlist)
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"find_videos": {
|
"find_videos": {
|
||||||
"ignore_urls": [],
|
"ignore_urls": [],
|
||||||
"patterns": [{
|
"patterns": [{
|
||||||
"pattern": "(?:fembed|divload|cercafilm|sonline|verystream).(?:com|net|pro|info)/((?:f|v)/[A-z0-9_-]+)",
|
"pattern": "(?:fembed|divload|cercafilm|sonline|verystream|animeworld).(?:com|net|pro|info|biz)/((?:f|v)/[A-z0-9_-]+)",
|
||||||
"url": "https://www.feurl.com/\\1"
|
"url": "https://www.feurl.com/\\1"
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|||||||
+6
-5
@@ -18,16 +18,17 @@ def test_video_exists(page_url):
|
|||||||
data = httptools.downloadpage(page_url, post={}).json
|
data = httptools.downloadpage(page_url, post={}).json
|
||||||
logger.info(data)
|
logger.info(data)
|
||||||
if "Video not found or" in data or "We are encoding this video" in data:
|
if "Video not found or" in data or "We are encoding this video" in data:
|
||||||
return False, config.get_localized_string(70449) % "fembed"
|
return False, config.get_localized_string(70449) % "Fembed"
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|
||||||
|
|
||||||
def get_video_url(page_url, user="", password="", video_password=""):
|
def get_video_url(page_url, user="", password="", video_password=""):
|
||||||
logger.info("(page_url='%s')" % page_url)
|
logger.info("(page_url='%s')" % page_url)
|
||||||
video_urls = []
|
video_urls = []
|
||||||
for videos in data["data"]:
|
for file in data['data']:
|
||||||
v = videos["file"]
|
media_url = file['file']
|
||||||
if not v.startswith("http"): v = "https://www.fembed.com" + videos["file"]
|
label = file['label']
|
||||||
video_urls.append([videos["label"] + " [Fembed]", v])
|
extension = file['type']
|
||||||
|
video_urls.append([ extension + ' ' + label + ' [Fembed]', media_url])
|
||||||
video_urls.sort(key=lambda x: x[0].split()[1])
|
video_urls.sort(key=lambda x: x[0].split()[1])
|
||||||
return video_urls
|
return video_urls
|
||||||
|
|||||||
Reference in New Issue
Block a user