lekma / plugin.video.invidious

Invidious Addon for Kodi
GNU General Public License v3.0
50 stars 7 forks source link

Seems to not work with other sites than invidio.us #8

Closed cy8aer closed 4 years ago

cy8aer commented 4 years ago

I tried my own instance (0.20.1-97eb01a @ master) and the top 8 instances from the plugin's Readme but only invidio.us plays videos. The other instances just flash and have logs like that:

2020-04-25 13:25:58.721 T:1937215504  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.invidious/?action=play_video&video_id=dRFbwjwQ4VE
2020-04-25 13:25:58.740 T:1458377600  NOTICE: Creating InputStream
2020-04-25 13:25:58.943 T:1458377600   ERROR: AddOnLog: InputStream Adaptive: Cannot download /api/manifest/dash/id/dRFbwjwQ4VE
2020-04-25 13:25:58.944 T:1458377600   ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (/api/manifest/dash/id/dRFbwjwQ4VE)
2020-04-25 13:25:58.944 T:1458377600   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.invidious/?action=play_video&video_id=dRFbwjwQ4VE]
2020-04-25 13:25:58.944 T:1458377600  NOTICE: CVideoPlayer::OnExit()
2020-04-25 13:25:59.055 T:1937215504  NOTICE: CVideoPlayer::CloseFile()
2020-04-25 13:25:59.056 T:1937215504  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-25 13:25:59.056 T:1937215504  NOTICE: VideoPlayer: finished waiting

commit https://github.com/lekma/plugin.video.invidious LibreElec/Raspi 9.2.1

lekma commented 4 years ago

can you add a debug log, please?

lekma commented 4 years ago

also try the direct link: https://invidio.us/watch?v=dRFbwjwQ4VE with different hosts (I cannot play it with any host either) it probably is an invidious bug.

cy8aer commented 4 years ago

Here we are... The watch link is a standard link and works for my instance and some others. So there is no problem with watch?v=blabla.

kodi.debug.log

lekma commented 4 years ago

ok, so it works with most invidious instances. your instance (v.g3la.de) seems to be misconfigured: it doesn't return a full url for the video.dashUrl property. Instead the property only include the path ("/api/manifest/dash/id/cX2wTdeFJX0" vs "https://v.g3la.de/api/manifest/dash/id/cX2wTdeFJX0"). You can check that here: https://v.g3la.de/api/v1/videos/cX2wTdeFJX0?fields=dashUrl (vs https://invidio.us/api/v1/videos/cX2wTdeFJX0?fields=dashUrl or https://invidious.snopyta.org/api/v1/videos/cX2wTdeFJX0?fields=dashUrl).

This can be solved on my end but before I do anything I'd like you to check if setting 'domain' to 'v.g3la.de' (or 'localhost' or whatever makes sense for your configuration) in the invidious config file (invidious/config/config.yml) and restarting your instance changes anything.

Thanks for your help

p.s.: the video in the first post is an entirely different matter that will need more reflexion.

cy8aer commented 4 years ago

hm, just set some parameters (domain and external_port because it is behind a reverse proxy). Url is now ok, but now I need to test. Please stand by.

lekma commented 4 years ago

it seems to be working now

cy8aer commented 4 years ago

Yes it works. So I close the issue. Thank you for your help.

lekma commented 4 years ago

@cy8aer: 30c349e2db88c2e702ebb8448f892e88e7332507 should fix it even with your previous config

cy8aer commented 4 years ago

Yes that works too. Thanks. But I will work futher with the new settings. But this option is better being more tolerant to wrong (?) configured servers.