mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #701] No play/view counts in get_playlist_info #454
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#454
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 @asegret on GitHub (Dec 24, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/701
All the views are null when calling get_playlist_info()
The views are available when clicking "show all" on the artist channel page (it's displayed when the artist has more than 5 songs (I guess it is 5 because it only shows 5 on the channel page))
https://music.youtube.com/channel/UCZn4r7heNOPY-C43YIywnVA
All the songs of the channel are listed in a playlist, and the views/plays are displayed
https://music.youtube.com/playlist?list=OLAK5uy_nI8GFXPiq15Yp6hiTSgp2Y5-4J5fD3W44
I think it changed with this commit :
ytmusicapi/parsers/playlists.py
def parse_playlist_item
line 171
github.com/sigma67/ytmusicapi@d2cbe538de (diff-3df5031030)minus :
views = get_item_text(data, 2) if flex_column_count == 4 or is_album else None
plus :
views = get_item_text(data, 2) if is_album else None
I added this locally and it worked for my use case :
To Reproduce
Additional context
I'm only using ytmusicapi to get stream numbers, I don't know the impact of that
I don't know if it use to work or not, I don't know anything about python and I'm using an LLM to help code some simple things in python, I'm absolutely not qualified to seriously code something in this language and do pull requests (I do java)
@sigma67 commented on GitHub (Dec 24, 2024):
Please try to follow the bug report template or I'm forced to close this one because I only understand about half of what you're trying to tell
@sigma67 commented on GitHub (Dec 27, 2024):
You are using
get_playlistfor an album. Useget_album_browse_idandget_albuminstead.There is also a PR here that could make it work for you: https://github.com/sigma67/ytmusicapi/pull/696