-
Notifications
You must be signed in to change notification settings - Fork 117
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
youtube playlist does not start from the autoexec service #961
Comments
You will need to provide a full debug log. The parts of the log that are not included are the parts that can explain why the issue is occurring, as opposed to the parts that are included which simply confirm that the issue has occurred. |
Sorry for that. Here is the full log at that time |
Thanks but it needs to be a debug log. Instructions for how to create one are here: |
kodi.log |
There are two issues:
The first issue you can resolve by using the Setup Wizard in this plugin, to set it up correctly by selecting the recommended settings for a RPi5. Will need to think about whether anything can be done about the second issue |
I used the setup wizard and set it to Rpi5 (so in fact almost all streams enabled) but this didn't solve the issue.
|
How do you do this? Try updating to the latest beta version: Then instead of a Kodi debug log, you can enable the following plugin setting: |
I installed beta5 and enabled debug logging there. When I reboot now, the playlist start playing right away without the stream errors and I don't see the white text in the left corner so that looks great. Sadly I already noticed that with the beta4 version (and now also beta5), only 1 video is playing and than it goes back to the main kodi screen. I had that issue also with beta4. I tried that earlier to see if that fixes my problem, but it only plays 1 video when I select a complete playlist. So even when I go into the youtube addon itself, select my playlist, right-click it and select "Play All" and than "shuffle" it starts playing but again only one video, and than it goes back to the main screen. This bug was not there in the main release, but seems to have started somewhere in the beta versions.
I did this by going to the addon, select one previous version and than the current version again, so basically re-installing it. |
Give the following test version a try: |
This works! Good Job. The playlist plays from startup with the autoexec service now properly, even with debug log disabled. Thanks for your support. |
Good to hear. Will add those changes to the next release. |
Context
Please provide any relevant information about your setup
Expected Behavior
When starting up my box, I have created the autoexec.py and addon.xml as described in https://kodi.wiki/view/Autoexec_Service.
The contents of my autoexec.py is:
import xbmc
xbmc.executebuiltin("RunPlugin(plugin://plugin.video.youtube/play/?playlist_id=PL6R9gjAqjmXj3PKCl7Ddgs6-xhBo5Dy1l&pp=gAQBiAQB&order=shuffle&play=1)")
Therefore, the youtube playlist should start playing automatically on startup
Current Behavior
What is the current behavior?
when starting up, I get several times the message "no streams found" with the youtube addon logo in the upper right corner of the screen. (probably as many times as there are videos in the playlist). At the end I got the error "One or more items failed to play, check the log for more details") and further nothing happens.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Log
Please include a complete debug log.
I see this for each item in playlist:
2024-11-05 14:42:15.412 T:1036 error : Playlist Player: skipping unplayable item: 30, path [plugin://plugin.video.youtube/play/?video_id=oJL-lCzEXgI]
2024-11-05 14:42:15.414 T:1079 info : [plugin.video.youtube] Running: YouTube (7.1.0.1+unofficial.1) on Omega (Kodi-21.1) with Python 3.11.9
Path: /play/
Params: {'video_id': 'jK9UUcd29AQ'}
2024-11-05 14:42:16.073 T:1079 error : [plugin.video.youtube] yt_play.play_video - No streams found:
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 16, in
plugin_runner.run()
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 62, in run
plugin.run(provider, context, focused=(current_uri == new_uri))
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 175, in run
result, options = provider.navigate(context)
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 174, in navigate
result = handler(provider=self, context=context, re_match=re_match)
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 361, in process
media_item = _play_stream(provider, context)
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 79, in _play_stream
exc=exc, details=''.join(format_stack())
Additional Information
Please provide any additional information that may be helpful.
When I manually stop and the start the autoexec service in my addons, than the youtube playlist does start to play right away. This indicates the contents of autoexec.py is working. Also when I double-click the autoexec.py in file manager, the playlist starts to play immediately without problems. So I only have this error when rebooting and starting up
The text was updated successfully, but these errors were encountered: