• 1
  • 185
  • 186
  • 187(current)
  • 188
  • 189
  • 204
Release YouTube
(2024-12-28, 14:21)Kisuke-CZE Wrote: Followed by URL which kodi cannot play. But when I open that URL on my computer in firefox, it works OK.
Maybe changing user agent string could help? But I do not know how to do that. Any ideas?
When you open it on your browser, the obfuscated JavaScript from the YouTube site creates a token (a signature) called "PO token" that proves that you're watching from a proper browser, that's why it flows so smoothly over there.

From Kodi there are not many things we can do to fix this. Requires some research.
Reply
(2024-12-26, 17:17)Oversized Wrote: How big of a UI job would be to bring yt comments in a few less clicks ?
I don't know if you've done this before, but you can change the plugin yourself, as all add-ons are open source.
Note that any changes will only last until you update the add-on to a new version, as the new version will overwrite your changes and you'd have to do them again.

If you're interested in doing the changes yourself, the steps are these:
  1. Using a desktop PC, download the latest add-on zip and unpack it somewhere.
  2. Replace or change the relevant script file in the unpacked files.
  3. Repack the add-on folder back to a zip as it was.
  4. Transfer the modified zip to your Kodi device (you can transfer it to your device via some file hosting site that you uploaded to temporarily and accessed with the browser app in the device, or using a USB flash drive with the zip inside).
  5. Finally, with the Unknown Sources setting enabled, install it within Kodi.

As for the actual changes:

As of this writing (2024-12-29), the code to be changed is in this quoted part here, inside function update_video_items:
https://github.com/anxdpanic/plugin.vide...#L893-L908

As you can see from that link, the file to be changed is /resources/lib/youtube_plugin/youtube/helper/utils.py.
The code in that quoted part creates the context_menu variable as either a list that's pre-filled with a "remove from Playlist" item (when you're logged in and own the playlist) or as an empty list, and it looks like this:
Python:
        # provide 'remove' in my playlists that have a real playlist_id
        if (playlist_id
                and logged_in
                and playlist_channel_id == 'mine'
                and playlist_id.strip().lower() not in {'wl', 'hl'}):
            context_menu = [
                menu_items.remove_video_from_playlist(
                    context,
                    playlist_id=playlist_id,
                    video_id=media_item.playlist_item_id,
                    video_name=title,
                ),
                menu_items.separator(),
            ]
        else:
            context_menu = []

The changed version would be this:
Python:
        # provide 'remove' in my playlists that have a real playlist_id
        if (playlist_id
                and logged_in
                and playlist_channel_id == 'mine'
                and playlist_id.strip().lower() not in {'wl', 'hl'}):
            context_menu = [
                menu_items.video_comments(context, video_id, video_name=title),
                menu_items.remove_video_from_playlist(
                    context,
                    playlist_id=playlist_id,
                    video_id=media_item.playlist_item_id,
                    video_name=title,
                ),
                menu_items.separator(),
            ]
        else:
            context_menu = [menu_items.video_comments(context, video_id, video_name=title)]

To both cases, it added this new menu item: menu_items.video_comments(context, video_id, video_name=title)
(Notice the comma at the end of the added line in the playlist case, as it's one item among others inside the list.)
With these changes, when you bring up the context menu, the "Comments" item will be at the top. I use this a lot, it's just two clicks to get to them.

If you've done something wrong, it'll probably fail when you try to run the plugin. You can install the latest version again (no need to uninstall), and leave this for another day.
Reply
Worked like a charm, thank you sir!
Reply
Fwiw: I have Kodi 20.2. I had errors with the last few releases. "This video not available" for example

Updating to 7.1.1.6 plays the few videos I tested but a few end up with no audio.

Rolling back to 7.0.5 seems to work fine for me.
Reply
hei

for the past 10 days the addon hasn't been working for me. some videos do not show at all, some have really low quality and no audio.
i tried re-installing, re-created api keys, installing the latest beta version from the repo,

here is a sample of what i see in the logs


Don't know what else to try, any suggestions are welcomed

thanks
Reply
(2024-12-30, 08:33)habarnam Wrote: hei

for the past 10 days the addon hasn't been working for me. some videos do not show at all, some have really low quality and no audio.
i tried re-installing, re-created api keys, installing the latest beta version from the repo,

here is a sample of what i see in the logs


Don't know what else to try, any suggestions are welcomed

thanks
You're not the only one. Youtube seems to be playing around with some stuff and therefore making it hard for 3rd-Party clients to play videos.
I might suggest to follow the corresponding ticket on github https://github.com/anxdpanic/plugin.vide...ssues/1040
Reply
thanks for the github ticket link. i will follow that one.
Reply
(2024-12-26, 17:17)Oversized Wrote: How big of a UI job would be to bring yt comments in a few less clicks ?

It's easy enough to change yourself, as @doku-desuka has shown, but I won't be adding more items to the main context menu until I get rid off stuff first - it is already too big as it is. This is part of a much bigger change related to combining similar remote (logged in) and local (not logged in) functions into one, so that Subscriptions (remote/logged in) and Bookmarks (local), and managing playlists (remote/logged in) and currently unimplemented local playlist functionality can be combined, which will then allow the context menu to be consolidated.
 
 
(2024-12-28, 03:29)nycguy Wrote:  If a video is deleted, etc, the menu does come up but theres no option to delete it.   So the video stays on the playlist almost like its saying theres nothing to delete its already removed.   But it remains listed on the playlist but named deleted.

This should be fixed in the latest beta versions. Latest is https://github.com/anxdpanic/plugin.vide...0%2Bbeta.2
 
(2024-12-28, 04:01)kurai Wrote: Still - at least it's *something* to tide me over until bigger brains can hopefully work around this latest roadblock.  Love
(2024-12-28, 11:51)xtruder Wrote: I tried playing with Inputstream adaptive settings, to play video's on lower resolutions, but nothing helps.
(2024-12-28, 14:21)Kisuke-CZE Wrote: Maybe changing user agent string could help? But I do not know how to do that. Any ideas?
(2024-12-29, 19:48)Spinner65 Wrote: Fwiw: I have Kodi 20.2. I had errors with the last few releases. "This video not available" for example
(2024-12-30, 08:33)habarnam Wrote: Don't know what else to try, any suggestions are welcomed

If you want to know what to do here it is: post a full debug log.

Nothing can be done otherwise.
(2024-12-30, 10:27)Puni Wrote: I might suggest to follow the corresponding ticket on github https://github.com/anxdpanic/plugin.vide...ssues/1040

Don't just follow, if you are experiencing a problem, try the test versions in that linked issue and post a debug log.
Reply
Thank you I will try that.  Happy New Year to you and all who do the work on this add on,  its appreciated.
Reply
Youtube is working now! Whatever it was, they must have rolled it back.
Reply
I'm having an odd issue, hopefully someone can test it on their addon.

When I'm watching Linus Tech Tips I used yo search for it and it brought up.loads of videos, I'f then go to Channels and would get a list of channes witj LTT at the top and related channels bekow. I'd click on the LTT channel and the vid would be shown but now I ckick chsnnels and it just shows the original list of the searched videos. Can someone see iftheirs is the same.

It was happening with 7.1.1.6, I updated to beta 1 of 7.2.0 and it fixed it for a day or 2 so I then updated 7.2.0 b2 but that didnt fix it
Reply
What was the reason for the implementation of the API keys to begin with?? It worked perfectly without them like 4 years ago...
Reply
(2025-01-01, 02:26)CalebChambers Wrote: What was the reason for the implementation of the API keys to begin with?? It worked perfectly without them like 4 years ago...

Yeah, nothing else in the world has changed in that time has it ...
Reply
(2025-01-01, 02:26)CalebChambers Wrote: What was the reason for the implementation of the API keys to begin with?? It worked perfectly without them like 4 years ago...
Google has continually made it harder for this addon to operate over the years. You now need your own set of API keys as they rate-limit them (so having everyone using the same set of keys results in the addon no longer working for anyone).
Reply
PR #3 submitted against MoojMidge/master

Background:  I am maintaining an addon script.extendedinfo that opens dialog windows with widget panels containing (among other things) a panel of youtube video search results.  The addon handles user selecting a video by calling for example
Code:
PlayMedia(plugin://plugin.video.youtube/play/?video_id=OPhUWrQx1zY&screensaver=true&incognito=true)
.  The addon closes the dialog and sleeps using xbmc.Player callback to wait for the video to finish, then restores the dialog.  That works as long as the video actually starts playing.  But if youtube plugin is unable to start playback for any reason, the script hangs.  As a work around I provided a timer, but that doesn't always work well (for example, if user has "select resolution" setting it can take a while for the plugin to attempt to start playback).

In looking at the plugin code I saw that a send_notification method was already provided to send a JSON NotifyAll for certain playback events.  Adding a new event for PLAYBACK_FAILED and setting that in a send_notification when youtube is unable to play a video allows addons to use xbmc.Monitor.onNotification() to listen for a PLAYBACK_FAILED event and take appropriate action.

scott s.
.
Reply
  • 1
  • 185
  • 186
  • 187(current)
  • 188
  • 189
  • 204

Logout Mark Read Team Forum Stats Members Help
YouTube0