Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live TV #7

Open
mmihal opened this issue Jul 12, 2019 · 5 comments
Open

Live TV #7

mmihal opened this issue Jul 12, 2019 · 5 comments

Comments

@mmihal
Copy link

mmihal commented Jul 12, 2019

Vsimol som si ze nejaky cas nejde LIVE vysielanie. Z logu neviem dostat nic viac ako:

2019-07-12 21:22:59.895 T:1105195744  NOTICE: ["Initializing provider ta3.com with settings {'lang': '0', 'downloads': '', 'quality': '1'}"]
2019-07-12 21:23:00.535 T:1915786800   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.ta3.com/?play=6c6976652e68746d6c&cp=7461332e636f6d&]
@marekzima
Copy link

Ja viem kde je problem... len to neviem opravit :(
Problem je, ze sa zmenila URL pre Live TV na : http://embed.livebox.cz/ta3_v2/live-source.js (v kode je http://embed.livebox.cz/ta3/live-source.js).
Ked to ale v kode zmenim, tak aj tak to nejde :(
Ked ale dam prvy src z tohto linku: http://e11.stv.livebox.sk/ta3/1.smil/playlist.m3u8?auth=_any_|1565679324|c46a27b007422279d71007b8eca4e51c168aa6bd
Tak krasne TA3 ide ....
Ak to viete, prosim, v kode opravit, budem vam povdacny ... mne sa to zatial nedari ... nikdy som plugin pre KODI nerobil, a tak niektorym veciam nerozumiem ako finguju (zatial).

Tesim sa na verziu 1.1.6 :) - verim, ze coskoro to niekto opravi :)

@marekzima
Copy link

Opravil som si to ... :)
Zmenil som 2 riadky:

  1. player_data = util.request("http://embed.livebox.cz/ta3_v2/live-source.js", {'Referer':self._url(item['url'])})

  2. manifest_url = "http:"+m_manifest.group(1)

Cela funkcia po novom:
def _resolve_live(self, item):
resolved = []
data = util.request(self._url(item['url']))
player_data = util.request("http://embed.livebox.cz/ta3_v2/live-source.js", {'Referer':self._url(item['url'])})
#print "player_data", player_data
for m_manifest in re.finditer(r'{"src"\s*:\s*"([^"]+)"\s*}', player_data, re.DOTALL):
manifest_url = "http:"+m_manifest.group(1)
#print "manifest_url", manifest_url
manifest = util.request(manifest_url)
#print "manifest", manifest
for m in re.finditer('#EXT-X-STREAM-INF:PROGRAM-ID=\d+,BANDWIDTH=(?P\d+)(,RESOLUTION=(?P\d+x\d+))?.*\s(?P[^\s]+)', manifest, re.DOTALL):
item = self.video_item()
item['surl'] = item['title']
if m.group('resolution') == '720x404':
item['quality'] = '404p'
else:
item['quality'] = '???'
item['url'] = manifest_url[:manifest_url.rfind('/')+1] + m.group('chunklist')
resolved.append(item)
# only first manifest url looks to be is valid
break
return resolved

@mmihal
Copy link
Author

mmihal commented Aug 14, 2019

Dik, prerobil som to aj ja. Bodlo by ale keby sa deployol patch :)

@kozmo2k4
Copy link

kozmo2k4 commented Sep 3, 2019

Thank you, @marekzima, that worked out great!

@andrejoxp
Copy link

Zdravim. Ta3 adons 1.1.5 mi pri spusteni pise chyba scriptu. Nejde ani Live ani Spravodajstvo ani Publicistika... co mam urobit aby mi zase vsetko fungovalo ako v minulosti. Ide mi hlavne o prezeranie archivu. Diky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants