[PR #194] [CLOSED] minor checks for list values to prevent errors #573

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

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/194
Author: @jskills
Created: 4/26/2021
Status: Closed

Base: masterHead: list-val-checks


📝 Commits (1)

  • 5e3b6fa minor checks for list values to prevent errors

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

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

📄 Description

This may be specific to those who have imported Google Play Music libraries into Youtube Music. As meticulous as I have been about ensuring all songs have the minimum mp3 tags (song title , artist and genre) as well as "album" wherever possible, I have seen results come back from ytmusicapi searches on "uploads" where the artist or album is missing and cause parsers/browsing.py or parsers/utils.py throw errors. These searches on the same terms work and return results in Youtube Music in the browser.

These minor additions ensure we're checking for values in Python list structures in some cases where they're assumed to be there. These changes just make for more graceful performance when encountering data that is expected to be present, but may not be.


🔄 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/194 **Author:** [@jskills](https://github.com/jskills) **Created:** 4/26/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `list-val-checks` --- ### 📝 Commits (1) - [`5e3b6fa`](https://github.com/sigma67/ytmusicapi/commit/5e3b6fa5a4c5bf57cfc95f27c4cacf1d6e281d84) minor checks for list values to prevent errors ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `ytmusicapi/parsers/browsing.py` (+3 -3) 📝 `ytmusicapi/parsers/utils.py` (+1 -1) </details> ### 📄 Description This may be specific to those who have imported Google Play Music libraries into Youtube Music. As meticulous as I have been about ensuring all songs have the minimum mp3 tags (song title , artist and genre) as well as "album" wherever possible, I have seen results come back from ytmusicapi searches on "uploads" where the artist or album is missing and cause parsers/browsing.py or parsers/utils.py throw errors. These searches on the same terms work and return results in Youtube Music in the browser. These minor additions ensure we're checking for values in Python list structures in some cases where they're assumed to be there. These changes just make for more graceful performance when encountering data that is expected to be present, but may not be. --- <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:32 +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#573
No description provided.