[PR #171] [CLOSED] Fix wrong or missing year in album search #568

Closed
opened 2026-02-27 23:01:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/171
Author: @alexmercerind
Created: 2/17/2021
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • d655f2a Fix missing year in album search

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 ytmusicapi/parsers/browsing.py (+1 -1)

📄 Description

With the following script.

from ytmusicapi import YTMusic

with YTMusic() as music:
    music.search('Liam Payne', 'albums')

Printing search_result['year'] from the same line (to which, the change is made), before this commit:

2019
2018
Dixie D’Amelio
Liam Payne
2017
2019
2019
Liam Payne
Liam Payne
Liam Payne
J. Balvin
2017
Liam Payne
2017
2019
Liam Payne
London On Da Track
Liam Payne
Cheat Codes
2018

After the change:

2019
2018
2020
2017
2017
2019
2019
2018
2018
2018
2018
2017
2017
2017
2019
2018
2017
2020
2020
2018

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigma67/ytmusicapi/pull/171 **Author:** [@alexmercerind](https://github.com/alexmercerind) **Created:** 2/17/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`d655f2a`](https://github.com/sigma67/ytmusicapi/commit/d655f2a7827036e7015c4ed1b646d4c57900467c) Fix missing year in album search ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ytmusicapi/parsers/browsing.py` (+1 -1) </details> ### 📄 Description With the following script. ```py from ytmusicapi import YTMusic with YTMusic() as music: music.search('Liam Payne', 'albums') ``` Printing ```search_result['year']``` from the same line (to which, the change is made), before this commit: ``` 2019 2018 Dixie D’Amelio Liam Payne 2017 2019 2019 Liam Payne Liam Payne Liam Payne J. Balvin 2017 Liam Payne 2017 2019 Liam Payne London On Da Track Liam Payne Cheat Codes 2018 ``` After the change: ``` 2019 2018 2020 2017 2017 2019 2019 2018 2018 2018 2018 2017 2017 2017 2019 2018 2017 2020 2020 2018 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:01:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#568
No description provided.