dentaku65 escribió:I've just add the multiple sources for the video (in a confused manner)
Yes, it is true that findvideos is somewhat confusing and there are episodes that does not show the url of videos such as "Elemetary": 2x17 and 2x18.
I leave a "findvideos" which is a bit less confusing and showing videos that were not displayed before.
They work well with the exception of videomega that I can not play; "CCurlFile :: FillBuffer - Failed: HTTP 403 error returned." Possibly be behind a proxy.
Código: Seleccionar todo
def findvideos(item):
logger.info("[seriehd1.py] findvideos")
itemlist = []
data = scrapertools.cache_page( item.url ).replace('\n', '')
patron = '<iframe id="iframeVid" width=".+?" height=".+?" src="([^"]+)" allowfullscreen="">'
url = scrapertools.find_single_match(data, patron)
if 'hdpass.xyz' in url:
data = scrapertools.cache_page(url, headers=headers).replace('\n', '').replace('> <', '><')
patron = '<form method="get" action="">'
patron+= '<input type="hidden" name="([^"]*)" value="([^"]*)"/>'
patron+= '<input type="hidden" name="([^"]*)" value="([^"]*)"/>'
patron+= '<input type="hidden" name="([^"]*)" value="([^"]*)"/>'
patron+= '<input type="hidden" name="([^"]*)" value="([^"]*)"/>'
patron+= '<input type="submit" class="[^"]*" name="([^"]*)" value="([^"]*)"/>'
patron+= '</form>'
for name1, val1, name2, val2, name3, val3, name4, val4, name5, val5 in re.compile(patron).findall(data):
get_data = '%s=%s&%s=%s&%s=%s&%s=%s&%s=%s' % (name1, val1, name2, val2, name3, val3, name4, val4, name5, val5)
tmp_data = scrapertools.cache_page('http://hdpass.xyz/film.php?' + get_data, headers=headers)
patron = r'<input type="hidden" name="urlEmbed" data-mirror="([^"]+)" id="urlEmbed" value="([^"]+)"/>'
for media_label, media_url in re.compile(patron).findall(tmp_data):
media_label=scrapertools.decodeHtmlentities(media_label.replace("hosting","hdload"))
itemlist.append(
Item(channel=__channel__,
server=media_label,
action="play",
title=' - [Player]' if media_label == '' else ' - [Player @%s]' % media_label,
url=media_url,
folder=False))
return itemlist
KodiFilms2 escribió:@Robalo here viewtopic.php?f=36&t=7500 we have discussed about the good Python resource for learning. Can you give to us a suggestion? About good resources? Thanks!
It is complicated, it is best to ask without fear in the forum, either to another or to me. Surely, you have some response, also without fear
