mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #606] get_playlist does not work for all languages #416
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#416
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 @JohnHKoh on GitHub (Jun 21, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/606
Describe the bug
I receive the following errors when trying to run
get_playlistwith the Korean ("ko") language using v1.7.3:and
To Reproduce
Steps to reproduce the behavior:
YTMusiclanguage parameter to Korean (language="ko")ytmusic.get_playlist(playlistId)Additional context
github.com/sigma67/ytmusicapi@11823d6387/ytmusicapi/mixins/playlists.py (L214-L215)These seem to be the offending lines. While English returns "100 tracks" for
second_subtitle_runs[has_views + 0]["text"], in Korean, it returns "트랙 100개", Therefore,song_count[0]does not have the correct value in the Korean language. The integer should be extracted from the string to account for such differences.@JohnHKoh commented on GitHub (Jun 21, 2024):
Closing as duplicate.