mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #588] parsers/browsing.py:parse_album() gives incorrect value for "year" #406
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#406
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 @ryanopily on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/588
When using a YTMusic object authenticated with browser headers, a call to get_home() incorrectly fills the "year" key in an album with the artist name.
EXAMPLE:
RESULT:
As you can see above; "year": "Alexisonfire". This happens with every album included in the result.
I couldn't find the actual field for album's year in the raw json returned from youtube. Maybe it's not included in the response.
@sigma67 commented on GitHub (May 25, 2024):
Cannot reproduce home page issues without response data
@ryanopily commented on GitHub (May 25, 2024):
I included a partial result of the parsed response data returned by YTMusic.get_home() showcasing the issue. I just couldn't find the correct value ("2002") in the raw, unparsed JSON returned by the website. Not sure what else I should include.
@sigma67 commented on GitHub (May 25, 2024):
Yes, you included a partial result. I'm asking for the full response data returned from the server.
You can get it by navigating there in the browser and grabbing it from the network request
A screenshot of your home page containing the problematic record would also be helpful
@ryanopily commented on GitHub (May 25, 2024):
music.youtube-home.json

@sigma67 commented on GitHub (May 27, 2024):
Thanks for the report and details!
ytmusic.get_library_upload_songs(...)#610