accumulator / plugin.video.lbry

This is a basic plugin for accessing LBRY content in Kodi/XBMC
GNU General Public License v2.0
26 stars 6 forks source link

public (default) API server returns invalid stream URL for videos with low view count #25

Open manolischania opened 1 year ago

manolischania commented 1 year ago

it would be nice to include the Greek language so that videos with Greek titles can be played

accumulator commented 1 year ago

I don't think there's anything blocking greek titled videos, as all text is handled as unicode. What exactly is the problem you are experiencing?

manolischania commented 1 year ago

I don't think there's anything blocking greek titled videos, as all text is handled as unicode. What exactly is the problem you are experiencing?

the title is viewable by the plugin but if it has greek characters It doesn't play it also if any channel is in greek characters It's not even accessible by the plugin

`2023-02-14 12:47:28.426 T:1852 info : VideoPlayer::OpenFile: plugin://plugin.video.lbry/play/%CE%B5%CE%B3%CE%BA%CE%B1%CF%84%CE%AC%CF%83%CF%84%CE%B1%CF%83%CE%B7-manaflix-kodi%2372e0e9c4b79379241b27112a300ad25b90feebcb

2023-02-14 12:47:29.803 T:9584 error : CCurlFile::XFILE::CCurlFile::Stat - https://player.odycdn.com/api/v4/streams/free/εγκατάσταση-manaflix-kodi/72e0e9c4b79379241b27112a300ad25b90feebcb/1a645d Failed: HTTP response code said error(22) 2023-02-14 12:47:29.803 T:9584 info : Creating InputStream 2023-02-14 12:47:30.213 T:9584 error : CCurlFile::CReadState::XFILE::CCurlFile::CReadState::FillBuffer - (0x28639300d80) Failed: HTTP returned code 401 2023-02-14 12:47:30.213 T:9584 error : CCurlFile::XFILE::CCurlFile::Open - https://player.odycdn.com/api/v4/streams/free/εγκατάσταση-manaflix-kodi/72e0e9c4b79379241b27112a300ad25b90feebcb/1a645d Failed with code 401:

2023-02-14 12:47:30.419 T:9584 error : CCurlFile::CReadState::XFILE::CCurlFile::CReadState::FillBuffer - (0x286345e0850) Failed: HTTP returned code 401 2023-02-14 12:47:30.419 T:9584 error : CCurlFile::XFILE::CCurlFile::Open - https://player.odycdn.com/api/v4/streams/free/εγκατάσταση-manaflix-kodi/72e0e9c4b79379241b27112a300ad25b90feebcb/1a645d Failed with code 401:

2023-02-14 12:47:30.419 T:9584 error : CFileCache::XFILE::CFileCache::Open - https://player.odycdn.com/api/v4/streams/free/εγκατάσταση-manaflix-kodi/72e0e9c4b79379241b27112a300ad25b90feebcb/1a645d failed to open 2023-02-14 12:47:30.419 T:9584 error : CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.lbry/play/%CE%B5%CE%B3%CE%BA%CE%B1%CF%84%CE%AC%CF%83%CF%84%CE%B1%CF%83%CE%B7-manaflix-kodi%2372e0e9c4b79379241b27112a300ad25b90feebcb] 2023-02-14 12:47:30.419 T:9584 info : CVideoPlayer::OnExit()`

accumulator commented 1 year ago

Ok, will have a look

karlo2105 commented 1 year ago

I would like to point out i have same message Failed: HTTP returned code 401 on several videos on Kodi LBRY extension which work normally on Odysee. It started on December on some videos and has expanded on all videos from several channels which worked normally previously. All those videos work flawlessy on Odysee website. Is there any chance to sync Kodi LBRY with Odysee subscription ?

accumulator commented 1 year ago

First suspecting an issue with URL encoding the URL passed to the player, I added code to re-encode the stream URL path.

However, I run into the issue @karlo2105 describes, with videos not playing, and after visiting the same video on odysee.com using the browser, it plays in the browser, but also in kodi (exact same URL).

So it looks like the odysee.com website does something to make the stream available which isn't done by the API server.

For now I can only recommend running your own lbrynet server (which doesn't seem to have a problem serving the stream, although I'm running a maybe bit outdated version..)

karlo2105 commented 1 year ago

I found a workaround by installing LBRY app and let it in background. In LBRY addon, i replaced public server by http://localhost:5279 It loads faster and all videos play. In LBRY app, i logged in and selected my account in LBRY addon. It was successful so i expected to get synchronised subscription list on LBRY addon but it is empty. How come doesn't it sync in LBRY addon despite success binding with LBRY app ? Is there any workaround ?

accumulator commented 1 year ago

I found a workaround by installing LBRY app and let it in background. In LBRY addon, i replaced public server by http://localhost:5279 It loads faster and all videos play.

Yes, like I described above, if you run your own lbrynet server/app it can resolve the stream url (it's served by the local server/app, not by the Odysee CDN)

In LBRY app, i logged in and selected my account in LBRY addon. It was successful so i expected to get synchronised subscription list on LBRY addon but it is empty. How come doesn't it sync in LBRY addon despite success binding with LBRY app ? Is there any workaround ?

Subscription list is currently local only. (TODO)