firsttris / plugin.video.sendtokodi

:tv: plays various stream sites on kodi using youtube-dl
MIT License
121 stars 27 forks source link

Issues with youtube #87

Closed mrchainman closed 1 year ago

mrchainman commented 1 year ago

Describe the bug I cannot play any youtube video, a screen pops up telling me I have to install the youtube addon

To Reproduce Send a video via Kore from newpipe to kodi

Expected behavior Video starts playing

Kodi and sendtokodi version (please complete the following information):

Provide a Kodi log

2023-01-05 10:49:29.013 T:701 INFO : Display resolution ADJUST : 1920x1080 @ 23.976025 Hz (27) (weight: 3096435337612168991275483136.000) 2023-01-05 10:49:29.026 T:516 INFO : VideoPlayer: OnLostDisplay received 2023-01-05 10:49:29.026 T:516 WARNING : CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED 2023-01-05 10:49:29.026 T:516 WARNING : CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED 2023-01-05 10:49:29.026 T:516 INFO : GLES: Maximum texture width: 2048 2023-01-05 10:49:29.028 T:701 INFO : Creating video codec with codec id: 27 2023-01-05 10:49:29.028 T:701 INFO : CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper 2023-01-05 10:49:29.051 T:701 INFO : Creating video thread 2023-01-05 10:49:29.052 T:711 INFO : running thread: video_thread 2023-01-05 10:49:29.052 T:701 INFO : Opening stream: 8 source: 256 2023-01-05 10:49:29.052 T:701 INFO : Finding audio codec for: 86018 2023-01-05 10:49:29.054 T:701 INFO : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2023-01-05 10:49:29.054 T:701 INFO : Creating audio thread 2023-01-05 10:49:29.054 T:712 INFO : running thread: CVideoPlayerAudio::Process() 2023-01-05 10:49:29.102 T:516 INFO : VideoPlayer: OnResetDisplay received 2023-01-05 10:49:29.114 T:712 INFO : CVideoPlayerAudio: display reset occurred, checking for passthrough 2023-01-05 10:49:29.115 T:712 INFO : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2023-01-05 10:49:29.116 T:712 INFO : Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through) 2023-01-05 10:49:29.116 T:548 INFO : CActiveAESink::OpenSink - initialize sink 2023-01-05 10:49:29.316 T:548 INFO : CAESinkALSA::Initialize - Attempting to open device "default" 2023-01-05 10:49:29.322 T:548 INFO : CAESinkALSA::Initialize - Opened device "default" 2023-01-05 10:49:29.323 T:548 INFO : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats 2023-01-05 10:49:29.323 T:548 INFO : CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3 2023-01-05 10:49:29.361 T:516 INFO : Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY 2023-01-05 10:49:29.872 T:711 WARNING : OutputPicture - timeout waiting for buffer 2023-01-05 10:49:29.891 T:516 ERROR : Window Translator: Can't find window True 2023-01-05 10:49:29.892 T:516 INFO : [WHITELIST] Searching the whitelist for: width: 1280, height: 720, fps: 23.976, 3D: false 2023-01-05 10:49:29.893 T:516 ERROR : T99 1280/720 vs. 1920/1080 - 23.976025 vs. 23.976025, flags: 0x0 2023-01-05 10:49:29.893 T:516 ERROR : T99 1280/720 vs. 1920/1080 - 23.976025 vs. 24.000000, flags: 0x0 2023-01-05 10:49:29.893 T:516 ERROR : T99 1280/720 vs. 1920/1080 - 23.976025 vs. 50.000000, flags: 0x0 2023-01-05 10:49:29.893 T:516 ERROR : T99 1280/720 vs. 1920/1080 - 23.976025 vs. 59.940063, flags: 0x0 2023-01-05 10:49:29.893 T:516 ERROR : T99 1280/720 vs. 1920/1080 - 23.976025 vs. 60.000000, flags: 0x0 2023-01-05 10:49:29.894 T:516 INFO : Skipped 1 duplicate messages.. 2023-01-05 10:49:29.894 T:516 INFO : Display resolution ADJUST : 1920x1080 @ 23.976025 Hz (27) (weight: 0.000) 2023-01-05 10:59:53.471 T:711 WARNING : OutputPicture - timeout waiting for buffer 2023-01-05 11:00:01.925 T:712 INFO : Skipped 154 duplicate messages.. 2023-01-05 11:00:01.925 T:712 INFO : CVideoPlayerAudio::Process - stream stalled 2023-01-05 11:00:01.961 T:711 WARNING : OutputPicture - timeout waiting for buffer



**In case a certain website does not work for you**
- sendtokodi uses a third-party resolver to extract playable media URLs from your input
- You can choose between [youtube-dl](https://github.com/ytdl-org/youtube-dl) and [yt-dlp](https://github.com/yt-dlp/yt-dlp)
  - If you have not changed anything in the addon settings the default is yt-dlp for kodi 19 and above while it is youtube-dl for earlier versions 
- Please search their corresponding issue tracker and make sure that the issue is not already known there but an actual problem with sendtokodi
- In case they have an issue on the topic already, there is nothing we can do but wait. 
  - sendtokodi will automatically be updated as soon as they release a fix.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
I tried both, yt-dlp and youtube-dl. Same behavior
nullket commented 1 year ago

I am not using Kore, we do not have any notification in our source code which tells you to install youtube and I can not see any traces for sendtokodi in your log (but that might also be the case if you took the wrong section of the log). So I assume Kore tries to playback youtube links with the kodi youtube addon and not with sendtokodi (we do not rely on the kodi youtube addon).

As guessed, the Kore source code seems to send youtube links to the youtube plugin instead to the sendtokodi plugin.

To be completely sure, please try something different than kore from the list of supported apps. I do not have an android device, so I cannot say if the listed third party app really works.

firsttris commented 1 year ago

if the alwaysSendToKodi variable in line 249 is true, they send the link to our addon instead of to plugins

see here. https://github.com/xbmc/Kore/blob/44cbc6fe8b49d7b703880e217b1282cce63b482f/app/src/main/java/org/xbmc/kore/ShareOpenActivity.java#L315

they have some kind of option to activate SendToKodi in the App Settings

mrchainman commented 1 year ago

Awesome, it was really just the toggle in the kore app, issue can be closed. Could you add that to the README?

nullket commented 1 year ago

Done