[PR #563] [MERGED] Add "type" attribute to library channels #653

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

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/563
Author: @fischcode
Created: 3/13/2024
Status: Merged
Merged: 3/13/2024
Merged by: @sigma67

Base: mainHead: main


📝 Commits (3)

  • 847023a Add "type" attribute to library channels
  • 5057ca9 format parsers/library.py
  • 04d3cb2 remove backup file created by WinMerge

📊 Changes

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

View changed files

📝 ytmusicapi/parsers/library.py (+5 -0)

📄 Description

YTMusic Library Channels list not only channels in the narrow sense but also artists publishing podcasts and episodes (e.g. The Offspring). To distinguish the two types of items, the json code contains a page_type attribute: get_library_channels response.json. This PR adds code to read the page_type attribute and, if present, add a "tyoe" item with a value of "channel" or "artist" to the artist dictionary object.


🔄 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/563 **Author:** [@fischcode](https://github.com/fischcode) **Created:** 3/13/2024 **Status:** ✅ Merged **Merged:** 3/13/2024 **Merged by:** [@sigma67](https://github.com/sigma67) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`847023a`](https://github.com/sigma67/ytmusicapi/commit/847023a526aeae0cc22ed8d58b5e3a98d5395db2) Add "type" attribute to library channels - [`5057ca9`](https://github.com/sigma67/ytmusicapi/commit/5057ca90a401861269f2f248e6019fe5cb7c97e0) format parsers/library.py - [`04d3cb2`](https://github.com/sigma67/ytmusicapi/commit/04d3cb23540953d9b0e9934efbf8d50afb14faa0) remove backup file created by WinMerge ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `ytmusicapi/parsers/library.py` (+5 -0) </details> ### 📄 Description YTMusic Library Channels list not only channels in the narrow sense but also artists publishing podcasts and episodes (e.g. The Offspring). To distinguish the two types of items, the json code contains a page_type attribute: [get_library_channels response.json](https://github.com/sigma67/ytmusicapi/files/14583273/get_library_channels.response.json). This PR adds code to read the page_type attribute and, if present, add a "tyoe" item with a value of "channel" or "artist" to the artist dictionary object. --- <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:52 +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#653
No description provided.