mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #713] How to get artist radio list? #463
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Vasa211 on GitHub (Jan 7, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/713
How to get artist radio list?
*I want create playlist from radio one time per day
@sigma67 commented on GitHub (Jan 8, 2025):
Hi, sorry about that. It should be returned by
get_artistbut it seems it broke some time ago. I have adjusted the paths and it should be fixed now@Vasa211 commented on GitHub (Jan 8, 2025):
You don't get it. How do I get the whole list of songs from radio id? I've gotten the id itself before
@sigma67 commented on GitHub (Jan 8, 2025):
Just use
get_playlist. I'd appreciate if you could be a bit less rude. Normally I would just close these kinds of issues that are merely questions and don't bother to follow the template@Vasa211 commented on GitHub (Jan 8, 2025):
Sorry. English is not my native language, maybe that's how the translator translated it. I certainly didn't mean to be rude, sorry again.
I'm going to try what you wrote
@Vasa211 commented on GitHub (Jan 8, 2025):
search_results = ytmusic.search(ARTIST_NAME, filter="artists")if not search_results:print(f"{ARTIST_NAME} not found.")returnartist = ytmusic.get_artist(search_results[0]['browseId'])radio_id = artist['radioId']print(f"ID radio: {radio_id}")radio_playlist = ytmusic.get_playlist(radio_id)what i do wrong? i received error:
main.py", line 22, in update_playlist radio_playlist = ytmusic.get_playlist(radio_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/mixins/playlists.py", line 110, in get_playlist response = self._send_request(endpoint, body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/ytmusic.py", line 278, in _send_request raise YTMusicServerError(message + error) ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 404: Not Found. Requested entity was not found.@sigma67 commented on GitHub (Jan 9, 2025):
Ah ok fair, I thought that might be the case. I have reponsed in your separate question
@sigma67 commented on GitHub (Jan 9, 2025):
Which version are you using to get the radioId?
Does it work for you on 1.9.1? Or using the version from Github?