[PR #48] [MERGED] Fix for artists without like buttons #544

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

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/48
Author: @grray
Created: 7/19/2020
Status: Merged
Merged: 7/20/2020
Merged by: @sigma67

Base: masterHead: fix-no-like-buttons


📝 Commits (2)

  • 3bcd7bd Fixed: KeyError when artist doesn't have subscribers count
  • 562b9fe Fix for artist page, if it has no buttons

📊 Changes

2 files changed (+13 additions, -7 deletions)

View changed files

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

📄 Description

Some artists doesn't have like buttons for songs list, for example https://music.youtube.com/channel/UC4HYnYJf1UxodkVFQkUHF9A. Because of this, get_artist() returns empty song list, and pollutes stdout with messages

Item 2: 'topLevelButtons'
Item 3: 'topLevelButtons'
Item 4: 'topLevelButtons'
Item 5: 'topLevelButtons'
Item 6: 'topLevelButtons'

This PR fixes it. It depends on previous PR.


🔄 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/48 **Author:** [@grray](https://github.com/grray) **Created:** 7/19/2020 **Status:** ✅ Merged **Merged:** 7/20/2020 **Merged by:** [@sigma67](https://github.com/sigma67) **Base:** `master` ← **Head:** `fix-no-like-buttons` --- ### 📝 Commits (2) - [`3bcd7bd`](https://github.com/sigma67/ytmusicapi/commit/3bcd7bd73f632b2f8cd9c6bce3fcf235cb347ad4) Fixed: KeyError when artist doesn't have subscribers count - [`562b9fe`](https://github.com/sigma67/ytmusicapi/commit/562b9fed9c42a44b2e66cf1bd2dff5fc8c7fb969) Fix for artist page, if it has no buttons ### 📊 Changes **2 files changed** (+13 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `ytmusicapi/mixins/browsing.py` (+1 -1) 📝 `ytmusicapi/parsers.py` (+12 -6) </details> ### 📄 Description Some artists doesn't have like buttons for songs list, for example https://music.youtube.com/channel/UC4HYnYJf1UxodkVFQkUHF9A. Because of this, get_artist() returns empty song list, and pollutes stdout with messages ``` Item 2: 'topLevelButtons' Item 3: 'topLevelButtons' Item 4: 'topLevelButtons' Item 5: 'topLevelButtons' Item 6: 'topLevelButtons' ``` This PR fixes it. It depends on previous PR. --- <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:25 +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#544
No description provided.