Comments (29)
Waiting for home-assistant/wheels-custom-integrations#190
In the meantime add it as custom repository
from ytube_music_player.
the playlist radio option stopped working. Can u advise how to fix it
from ytube_music_player.
As always: please turn on debug information (see readme) and try to turn it on. Then copy the debug log into this ticket please
from ytube_music_player.
============= ytube_music_player Integration Error ================
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player] unfortunately we hit an error in the sub api, please open a ticket at
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player] https://github.com/sigma67/ytmusicapi/issues
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player] and paste the following output:
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player] Traceback (most recent call last):
File "/config/custom_components/ytube_music_player/media_player.py", line 1110, in play_media
self._tracks = self._api.get_watch_playlist(videoId=r_track['videoId'])['tracks']
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/watch.py", line 80, in get_watch_playlist
tracks = parse_watch_playlist(results['contents'])
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/watch.py", line 29, in parse_watch_playlist
'playlistId': nav(data, NAVIGATION_PLAYLIST_ID),
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 210, in nav
raise err
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 204, in nav
root = root[k]
KeyError: 'playlistId'
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player]
thanks, Kolja
2021-03-20 02:54:32 ERROR (SyncWorker_7) [custom_components.ytube_music_player.media_player] ============= ytube_music_player Integration Error ================
2021-03-20 02:54:33 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-03-20 02:54:34 ERROR (Thread-13) [homeassistant.components.cast.media_player] Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player]
============= ytube_music_player Integration Error ================
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player] unfortunately we hit an error in the sub api, please open a ticket at
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player] https://github.com/sigma67/ytmusicapi/issues
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player] and paste the following output:
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player] Traceback (most recent call last):
File "/config/custom_components/ytube_music_player/media_player.py", line 1110, in play_media
self._tracks = self._api.get_watch_playlist(videoId=r_track['videoId'])['tracks']
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/watch.py", line 80, in get_watch_playlist
tracks = parse_watch_playlist(results['contents'])
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/watch.py", line 29, in parse_watch_playlist
'playlistId': nav(data, NAVIGATION_PLAYLIST_ID),
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 210, in nav
raise err
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 204, in nav
root = root[k]
KeyError: 'playlistId'
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player]
thanks, Kolja
2021-03-20 02:54:34 ERROR (SyncWorker_9) [custom_components.ytube_music_player.media_player] ============= ytube_music_player Integration Error ================
from ytube_music_player.
and thank you
from ytube_music_player.
@sigma67 can you help out? Any idea what that means?
from ytube_music_player.
I'd need more details on what calls are performed to ytmusicapi. I can only see that get_watch_playlist is being called with a specific videoId, but not which one. That videoId might result in a watch_playlist that is problematic.
from ytube_music_player.
Obviously I am a beginner
I installed the custom component as per instructions.
I have the dropdown input select for source on a lovelace entities card. It used to work whenever I chose the Playlist radio option and create a playlist automatically based on which playlist is chosen in the playlist dropdown menu. now, and without changing anything, the behaviour of that option is what you see in these logs. so what other info I can provide to help reolve it?
Thanks
from ytube_music_player.
I appreciate if yo can help please thanks
from ytube_music_player.
I am only able to help if you tell me the video or playlist that is causing this error for you.
from ytube_music_player.
Sure. Any playlist when I set the source as a radio. It doesn't seem to be able to generate an auto playlist
from ytube_music_player.
Hi, so playing a playlist straight works, but any playlist as radio fails?
from ytube_music_player.
yes exactly. and in the past it used to work. No changes made on my side. Thanks for your help. I enjoy the addon
from ytube_music_player.
please update to this version https://github.com/KoljaWindeler/ytube_music_player/releases/tag/20210323
enable debug https://github.com/KoljaWindeler/ytube_music_player#1-reroute-debug-output-to-error-via-service and post your log file again, that should post some info in the fashion of
2021-03-23T07:45:46.488392840Z 2021-03-23 08:45:46 ERROR (SyncWorker_33) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=PLZvjm51R8SGuWhMtfSu-A17Kp3jZfg6pg)
from ytube_music_player.
I experimented a bit with radios and get_watch_playlist
. I found out that you cannot use radio playlists with get_watch_playlist_shuffle
(kinda makes sense, but probably not related to this).
The error seems to indicate that there is some entry in the watch playlist that does not have an associated radio playlist for some reason. This should be easily fixable, but I'd like to reproduce it first. For that I'd need the videoId being passed in
self._api.get_watch_playlist(videoId=r_track['videoId'])['tracks']
from ytube_music_player.
2021-03-23 07:44:05 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] TURNON
2021-03-23 07:44:05 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] play_media, media_type: channel, media_id: LM
2021-03-23 07:44:05 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] prepare_play
2021-03-23 07:44:05 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] check_api
2021-03-23 07:44:05 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] - no valid API, try to login
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] - YouTube Api initialized ok, version: 0.14.3
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] _update_remote_player
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] _turn_on_media_player
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] _get_cipher
2021-03-23 07:44:06 ERROR (SyncWorker_15) [custom_components.ytube_music_player.media_player] _sync_player
2021-03-23 07:44:06 ERROR (SyncWorker_15) [custom_components.ytube_music_player.media_player] media_player.shield: off -> idle
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=LM) ... get_watch_playlist(videoId=eDB4ULCHCAE)
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player]
============= ytube_music_player Integration Error ================
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] unfortunately we hit an error in the sub api, please open a ticket at
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] https://github.com/sigma67/ytmusicapi/issues
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] and paste the following output:
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] Traceback (most recent call last):
File "/config/custom_components/ytube_music_player/media_player.py", line 1124, in play_media
self._tracks = self._api.get_watch_playlist(videoId=r_track['videoId'])['tracks']
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/watch.py", line 80, in get_watch_playlist
tracks = parse_watch_playlist(results['contents'])
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/watch.py", line 29, in parse_watch_playlist
'playlistId': nav(data, NAVIGATION_PLAYLIST_ID),
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 210, in nav
raise err
File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 204, in nav
root = root[k]
KeyError: 'playlistId'
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player]
thanks, Kolja
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] ============= ytube_music_player Integration Error ================
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] turn_off
2021-03-23 07:44:06 ERROR (SyncWorker_17) [custom_components.ytube_music_player.media_player] _turn_off_media_player
2021-03-23 07:44:06 ERROR (Thread-14) [homeassistant.components.cast.media_player] Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2021-03-23 07:44:06 ERROR (SyncWorker_8) [custom_components.ytube_music_player.media_player] _sync_player
2021-03-23 07:44:06 ERROR (SyncWorker_8) [custom_components.ytube_music_player.media_player] media_player.shield: idle -> idle
2021-03-23 07:44:06 ERROR (SyncWorker_20) [custom_components.ytube_music_player.media_player] _sync_player
2021-03-23 07:44:06 ERROR (SyncWorker_20) [custom_components.ytube_music_player.media_player] media_player.shield: idle -> off
from ytube_music_player.
hope this is helpful
thank you
from ytube_music_player.
I can't reproduce the issue, probably since radios depend on your location as well.
But I found that the playlistId is the same for each entry, so I'll use a different approach in getting it. Should fix your issue hopefully. You can try again with the latest master of ytmusicapi, I just pushed a fix.
from ytube_music_player.
Kolja
how do I update to the latest version of ytmusicapi via the ytube media player in HASS?
from ytube_music_player.
I will publish a release this week if nothing else comes up, that should make updating easier.
from ytube_music_player.
Thank you guys,, This was a great feature that I hope will be coming back. I wonder if this is only happening to me or this is a glitch in the API affecting everyone. I really appreciate if it can be fixed. I appreciate your time. Thanks again
from ytube_music_player.
https://github.com/sigma67/ytmusicapi/releases/tag/0.15.0
from ytube_music_player.
Thank you. My question is to Kolja, how do I implement this new release in his HASS addon? does it automatically pull the new release?
I appreciate your help
from ytube_music_player.
Hi, yep, I'm already testing and will update shortly
from ytube_music_player.
https://github.com/KoljaWindeler/ytube_music_player/releases/tag/20210325
from ytube_music_player.
thank you. I hope i didnt do anything stupid in the process. let me know if you need me to provide any other data from the logger
from ytube_music_player.
You guys are THE BEST IT WORKED
Is there anyway you can explain what happened in simple terms? I am learning and this is awesome
from ytube_music_player.
Basically a data entry was missing in one of the videos in your watch playlist. ytmusicapi was expecting it to be there, when it wasn't it crashed. I just changed it to also work when the entry is missing
from ytube_music_player.
π I'll close this now, thanks @sigma67
from ytube_music_player.
Related Issues (20)
- Can't play library playlist, browsing the playlist crashes HOT 3
- Clarification about the loaded tracks limit HOT 1
- Can't get anything to play, playlist is fetched, error upon starting. HOT 1
- Deprecated methods in use (2024.5.0) HOT 1
- unable to select_option media player, error in line 36
- New Playlist Entity value not saved permanently HOT 3
- Media player is stopping after one song of a playlist chosen with the new SELECT entity HOT 7
- Please select a player before start playing, e.g. via the 'media_player.select_source' method or in the settings/config_flow HOT 6
- No Sound at all HOT 1
- Playlist plays in random order, seemingly no way to disable shuffle HOT 1
- Skip Track Using Remote HOT 2
- No matching entities found even though I have my usb audio connected and recognized by home assistant HOT 2
- Unfortunately we hit an error, please open a ticket - Integration no Longer Working HOT 2
- Γchec de l'appel du service media_player/turn_on. 'NoneType' object has no attribute 'state' HOT 4
- Songs stop playing after one track + media picture not shown HOT 13
- Start playing music with integration, control via phone apps? HOT 1
- New Update Error Uploaded Artists HOT 1
- Can't get YouTube Music to play on either Acrylic or Sonos HOT 1
- Error executing script. Unexpected error for call_service at pos 2: can only concatenate str (not "NoneType") to str HOT 11
- The playlist does not play.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytube_music_player.