Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugin.video.alfa/channels/serieskao.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def episodios(item):
logger.info()
itemlist = []
templist = seasons(item)
templist = [x for x in templist if x.action == 'episodesxseasons']
for tempitem in templist:
itemlist += episodesxseasons(tempitem)

Expand Down
14 changes: 10 additions & 4 deletions plugin.video.alfa/channels/tubeonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def episodesxseason_matches(item, matches_int, **AHkwargs):
findS = AHkwargs.get('finds', finds)

for elem_season in matches_int:

item.contentSeason = item.contentSeason or 1
if elem_season.find("span", class_="se-t").get_text(strip=True) != str(item.contentSeason): continue
epi_list = elem_season.find("ul", class_="episodios")

Expand All @@ -279,9 +279,15 @@ def episodesxseason_matches(item, matches_int, **AHkwargs):
try:
info = elem.find("div", class_="episodiotitle")
elem_json['url'] = info.a.get("href", "")
elem_json['episode'] = int(elem.find("div", class_="numerando").get_text(strip=True).split("x")[1] or 1)
elem_json['title'] = info.a.get_text(strip=True)
elem_json['season'] = item.contentSeason
elem_json['episode'] = 1
episode_data = elem.find("div", class_="numerando")
if episode_data:
episode_data = episode_data.get_text(strip=True)
match = re.search(r'\d+.*?(\d+)', episode_data)
if match:
elem_json['episode'] = int(match.group(1))
elem_json['title'] = info.a.get_text(strip=True)
elem_json['thumbnail'] = elem.img.get('data-src', '') or elem.img.get('src', '')

except Exception:
Expand Down Expand Up @@ -349,7 +355,7 @@ def play(item):
try:
kwargs['headers'] = {'Referer': item.url}
kwargs['post'] = {"nombre": item.extra}
new_soup = AlfaChannel.create_soup('https://www.tubeonline.net/wp-content/themes/dooplayorig123/inc/encriptar.php', **kwargs)
new_soup = AlfaChannel.create_soup('%swp-content/themes/dooplayorig123/inc/encriptar.php' % host, **kwargs)
url = new_soup.iframe["src"]
itemlist.append(item.clone(url=url, server=""))
itemlist = servertools.get_servers_itemlist(itemlist)
Expand Down
2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_06.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_07.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_08.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_09.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_10.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_11.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_12.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/lib/planb_py3_3_13.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions plugin.video.alfa/lib/planb_py3_3_14.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.video.alfa/platformcode/platformtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ def get_seleccion(default_action, opciones, seleccion, video_urls):
if fixpri is True and check and priority == 2:
seleccion = 0
else:
seleccion = resolutions.index(int(len(resolutions) / 2))
seleccion = int(len(resolutions) / 2)
else:
if fixpri is True and check:
seleccion = 0
Expand Down
27 changes: 6 additions & 21 deletions plugin.video.alfa/servers/vidhidepro.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,10 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
try:
enc_data = scrapertools.find_single_match(data, "text/javascript(?:'|\")>(eval.*?)</script>")
dec_data = jsunpack.unpack(enc_data)
# m3u8_source = scrapertools.find_single_match(dec_data, '"hls2":"([^"]+)"')
m3u8_source = scrapertools.find_single_match(dec_data, '"hls4":"([^"]+)"')
m3u8_source =urlparse.urljoin(host, m3u8_source)

if "master.m3u8" in m3u8_source:
datos = httptools.downloadpage(m3u8_source).data
if sys.version_info[0] >= 3 and isinstance(datos, bytes):
datos = "".join(chr(x) for x in bytes(datos))

if datos:
matches_m3u8 = re.compile('#EXT-X-STREAM-INF.*?RESOLUTION=\d+x(\d*)[^\n]*\n([^\n]*)\n', re.DOTALL).findall(datos)
## matches_m3u8 = re.compile('#EXT-X-STREAM-INF\:[^\n]*\n([^\n]*)\n', re.DOTALL).findall(datos)
for quality, url in matches_m3u8:
url =urlparse.urljoin(m3u8_source,url)
url += "|Referer=%s/&Origin=%s" % (host, host)
video_urls.append(["[vidhide] %sp" % quality, url])
else:
video_urls.append(['[vidhide] m3u', m3u8_source])

except Exception:
dec_data = data
# logger.debug("dec_data: %s" % dec_data)
m3u8_source = scrapertools.find_single_match(dec_data, r'"hls\d":"([^"]+?\.m3u8[^"]+)')
m3u8_source = urlparse.urljoin(host, m3u8_source)
video_urls.append(['[vidhide] m3u', m3u8_source])
except Exception as e:
logger.error(str(e))
return video_urls