TheAssassin / kodi-invidious-plugin

Invidious plugin for Kodi. A privacy-friendly way of viewing YouTube videos, built using the awesome Invidious service's API.
MIT License
50 stars 16 forks source link

Plugin uses wrong port #15

Closed plague-doctor closed 1 year ago

plague-doctor commented 2 years ago

I would like to use my private invidious instance. However the plugin tries to connect on port :3000 and it fails, as I host my instance behind the SSL proxy.

Any idea what's going on and how to force the plugin to use https (443) and not 3000?

2022-04-14 15:19:39.694 T:4010     INFO <general>: Creating InputStream
2022-04-14 15:19:39.694 T:4010     INFO <general>: AddOnLog: inputstream.adaptive: SetVideoResolution (1920 x 1080)
2022-04-14 15:19:39.700 T:4010    ERROR <general>: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
2022-04-14 15:19:39.700 T:4010    ERROR <general>: CCurlFile::Open failed with code 0 for https://invidious.domain.my:3000/api/manifest/dash/id/ZWxxxxYMM:

2022-04-14 15:19:39.700 T:4010    ERROR <general>: AddOnLog: inputstream.adaptive: Download failed: https://invidious.domain.my:3000/api/manifest/dash/id/ZWxxxxYMM
2022-04-14 15:19:39.700 T:4010    ERROR <general>: AddOnLog: inputstream.adaptive: Could not open / parse manifest (https://invidious.domain.my:3000/api/manifest/dash/id/ZWxxxxYMM)
2022-04-14 15:19:39.701 T:4010    ERROR <general>: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.invidious/?video_id=ZWxxxxYMM&action=play_video]
2022-04-14 15:19:39.701 T:4010     INFO <general>: CVideoPlayer::OnExit()
2022-04-14 15:19:39.701 T:4010     INFO <general>: ADDON: Dll Destroyed - InputStream Adaptive
2022-04-14 15:19:39.805 T:3583     INFO <general>: CVideoPlayer::CloseFile()
2022-04-14 15:19:39.805 T:3583     INFO <general>: VideoPlayer: waiting for threads to exit
2022-04-14 15:19:39.805 T:3583     INFO <general>: VideoPlayer: finished waiting
2022-04-14 15:19:39.811 T:4013     INFO <general>: initializing python engine.
2022-04-14 15:19:39.861 T:4005     INFO <general>: Python interpreter stopped
2022-04-14 15:19:40.057 T:4013     INFO <general>: CPythonInvoker(27, /storage/.kodi/addons/script.embuary.helper/plugin.py): script successfully run
2022-04-14 15:19:40.310 T:4013     INFO <general>: Python interpreter stopped
TheAssassin commented 1 year ago

The plugin doesn't use 3000 as a "default port" anywhere. I sincerely have no idea how you managed to make it try that one. Looks like a configuration issue.