lekma / plugin.video.invidious

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

Video requests add port 3000 incorrectly to url when using a custom instance #58

Closed appletalk closed 3 years ago

appletalk commented 3 years ago

When using my own hosted invidious instance for some reason requests made by the Invidious plugin are adding port 3000 to the requested video url even though I am not specifying it in the setup.

You can see in this log that the service url is correct, but when it tries to connect to the video it adds :3000 to the url. This does not appear to occur if using one of the hosts from the public instance selector, only if I specify my invidious instance manually.

2021-03-07 14:59:56.954 T:1276064640  NOTICE: [plugin.video.invidious] service.timeout: (9.0500000000000007, 10.0)
2021-03-07 15:00:08.087 T:1276064640  NOTICE: [plugin.video.invidious] request.url: https://invidious.example.com/api/v1/search?q=****&region=US&type=video&page=1&sort_by=relevance
2021-03-07 15:00:12.264 T:1276064640  NOTICE: [plugin.video.invidious] request.url: https://invidious.example.com/api/v1/videos/****?region=US
2021-03-07 15:00:13.209 T:1223250816  NOTICE: [plugin.video.invidious] video.url: https://invidious.example.com:3000/api/manifest/dash/id/****
2021-03-07 15:00:14.006 T:1937126448  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.invidious/?action=video&videoId=****
2021-03-07 15:00:14.007 T:1708807040  NOTICE: Creating InputStream
2021-03-07 15:00:14.031 T:1708807040   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
2021-03-07 15:00:14.031 T:1708807040   ERROR: CCurlFile::Open failed with code 0 for https://invidious.example.com:3000/api/manifest/dash/id/****:
2021-03-07 15:00:14.031 T:1708807040   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://invidious.example.com:3000/api/manifest/dash/id/****
2021-03-07 15:00:14.031 T:1708807040   ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (https://invidious.example.com:3000/api/manifest/dash/id/****)
2021-03-07 15:00:14.032 T:1708807040   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.invidious/?action=video&videoId=****]
2021-03-07 15:00:14.032 T:1708807040  NOTICE: CVideoPlayer::OnExit()
2021-03-07 15:00:14.216 T:1937126448  NOTICE: CVideoPlayer::CloseFile()
appletalk commented 3 years ago

This was a misconfiguration of my Invidious instance. Not an issue with the plugin.