Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending live Youtube videos to Kodi doesn't work #966

Open
AlexNk opened this issue Jun 8, 2023 · 4 comments
Open

Sending live Youtube videos to Kodi doesn't work #966

AlexNk opened this issue Jun 8, 2023 · 4 comments

Comments

@AlexNk
Copy link

AlexNk commented Jun 8, 2023

Bug report

2023-06-08 22:16:25.160 T:744     error <general>: Unable to find plugin plugin.video.sendtokodi
2023-06-08 22:16:25.160 T:744     error <general>: Playlist Player: skipping unplayable item: 1, path [plugin://plugin.video.sendtokodi/?https://www.youtube.com/live/scyY2bmL7gE?feature=share]

Sample video: https://www.youtube.com/live/scyY2bmL7gE

@AlexNk
Copy link
Author

AlexNk commented Jun 12, 2023

I was able to send the same video to Kodi by doing the following:

  1. Open it in a browser. On this step sending still doesn't work
  2. Change it to https://www.youtube.com/watch?v=scyY2bmL7gE - same ID, but no /live/
  3. Share - send to Kodi

@AlexNk
Copy link
Author

AlexNk commented Jun 13, 2023

It seems that this format of URLs is simply not supported:

ShareOpenActivity.java -> toPluginUrl(): In the block of host.endsWith("youtube.com"), it attempts to get either playlist ID or video ID - both by arguments - v and list, and if it can't it goes to the end of the function and sends it with this prefix that Kodi can't process.

@SyncedSynapse
Copy link
Member

You are probably right, the url parser only supports a limited number of variations, and the /live/ isn't one of them.

@AlexNk
Copy link
Author

AlexNk commented Jun 15, 2023

The percentage of live videos these days is significant. And after the live translation is complete, the video remains with this URL. This is really annoying that so many videos can't be sent to Kodi.

peat-psuwit added a commit to peat-psuwit/Kore that referenced this issue Feb 17, 2024
YouTube now use the new format for live streams and shorts. The pattern
is https://www.youtube.com/{live,shorts}/<video id>. But other than
pattern change, the video ID is otherwise completely compatible with the
old format.

Since this pattern is similar to https://youtu.be/ format, re-use that
code by re-shuffle the conditions a bit. The change is applied to both
default and Invidious plugins.

Fixes: xbmc#966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants