[PR #607] [CLOSED] Extract song count from text #670

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

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/607
Author: @JohnHKoh
Created: 6/21/2024
Status: Closed

Base: mainHead: song_count_fix


📝 Commits (2)

📊 Changes

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

View changed files

📝 ytmusicapi/mixins/playlists.py (+4 -2)
📝 ytmusicapi/parsers/playlists.py (+4 -2)

📄 Description

Use RegEx search to search for track count integer instead of using indexing. If the number cannot be extracted, return 0 as a fallback.

Addresses https://github.com/sigma67/ytmusicapi/issues/606


🔄 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/607 **Author:** [@JohnHKoh](https://github.com/JohnHKoh) **Created:** 6/21/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `song_count_fix` --- ### 📝 Commits (2) - [`1d62e98`](https://github.com/sigma67/ytmusicapi/commit/1d62e9865071e23d1a1375c6569bc41356ab800d) Extract song count from text - [`ffc0eba`](https://github.com/sigma67/ytmusicapi/commit/ffc0eba3f5cdadaeba40a170995e649e5152b800) Add fix in parsers ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `ytmusicapi/mixins/playlists.py` (+4 -2) 📝 `ytmusicapi/parsers/playlists.py` (+4 -2) </details> ### 📄 Description Use RegEx search to search for track count integer instead of using indexing. If the number cannot be extracted, return 0 as a fallback. Addresses https://github.com/sigma67/ytmusicapi/issues/606 --- <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:55 +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#670
No description provided.