-
Notifications
You must be signed in to change notification settings - Fork 114
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
Videos only play upon second click #1021
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@mimre25 - Reason the playback is failing is because the http server has stopped. When the plugin is run and playback requested, the http server is requested to run and your log shows this happening everytime except when the playback fails. Can you get a debug log? A normal log does not provide enough details to know why the server is not starting. @Rialtho-the-Magnificent - Sure there is testing done. All works fine for me. If you would like to make sure it works for you there are a few options:
@demouser007 - thanks :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Here is a debug log. |
Thanks. Far more complicated problem than I assumed and not sure it is resolvable. The httpserver is not the problem, but the plugin code does not even appear to be running because the Python interpreter is busy doing something else. Does this only happen in your Watch Later list? Does it only happen after you have already watched a video from that list, and then try to watch another one? @Rialtho-the-Magnificent - I don't really understand what the issue you are having is, but it is unrelated to this issue. Rather than complaining about it there are simple things that can be done:
This is because the numbers are part of the playlist details that are cached. Is this your own playlist that you are modifying? How frequently is the playlist being updated? |
This comment was marked as off-topic.
This comment was marked as off-topic.
😬 On the bright side, I'm a dev myself and have been using python for about 10 years now, so I'm happy to help out digging into this. 🙂
It only happens after watching a video, never from a fresh start.
I have another plugin (https://github.com/siku2/script.service.sponsorblock), which recently (a few months ago) has started to sometimes fail to block sponsor segments for me, and upon inspecting the logs it seems like it errors a lot. I will have more time tomorrow to test a bit more (eg trying other lists, doing another debug log, disabling the sponsorblock plugin,...) and see what comes out of that. |
@Rialtho-the-Magnificent - nothing you are talking about is related to this issue. I have created a new issue for you (#1024), please only respond there. @mimre25 - it is a timing issue which makes it difficult to replicate, but I know what is happening. Just haven't thought of a clean way to fix it. Basically there is a Kodi bug where multiple busy dialogs will cause Kodi to terminate. These busy dialogs can occur when making network requests or updating plugin listings (amongst other things), both of which occur when watching items from a playlist. To avoid the crash, the addon
When you are trying to playing a second video it is happening between steps 3 and 4, so rather than playing the video, the plugin call instead continues on with step 4. I'm pretty sure if you just wait for your device to catchup after playing a video, before playing another video, the problem won't occur. In the meantime, you can try https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip It likely won't fix the problem, but takes steps towards a solution. |
Context
Some context from a previous issue that I had is in #913.
Note that I had a continuous ping from my Raspberry Pi to the router while testing, so I'm pretty sure I'm not losing the internet connection.
I've updated both Kodi and the plugin in hopes that this will solve the issue.
Please provide any relevant information about your setup
21.1 (21.1.0) Git:20241025-f41df4d7da
(issue was also present on 20.5)Expected Behavior
Video plays upon select.
Current Behavior
When I'm on my watch later list and I navigate to a video and then click to play it, I'm zapped back to the previous video in the list and nothing is played.
Only the second time I select a video works.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Log
Please include a complete debug log.
kodi.log
The text was updated successfully, but these errors were encountered: