kodi-czsk / plugin.video.ta3.com

GNU General Public License v2.0
0 stars 3 forks source link

Live TV #7

Open mmihal opened 5 years ago

mmihal commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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<bandwidth>\d+)(,RESOLUTION=(?P<resolution>\d+x\d+))?.*\s(?P<chunklist>[^\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 commented 5 years ago

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

kozmo2k4 commented 5 years ago

Thank you, @marekzima, that worked out great!

andrejoxp commented 5 years ago

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