[PR #120] [CLOSED] Fix TypeError when handling None tracks/episodes in playlists #171

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

📋 Pull Request Information

Original PR: https://github.com/Googolplexed0/zotify/pull/120
Author: @s7github
Created: 11/19/2025
Status: Closed

Base: efficient-apiHead: efficient-api


📝 Commits (1)

  • 6d9e348 Fix TypeError when handling None tracks/episodes in playlists

📊 Changes

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

View changed files

📝 zotify/api.py (+7 -3)

📄 Description

  • Add null check in Playlist.fetch_items() before accessing item[TRACK] properties
  • Filter out None values in parse_linked_objs() to prevent subscript errors
  • Prevents crashes when playlist contains unavailable or deleted items

🔄 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/Googolplexed0/zotify/pull/120 **Author:** [@s7github](https://github.com/s7github) **Created:** 11/19/2025 **Status:** ❌ Closed **Base:** `efficient-api` ← **Head:** `efficient-api` --- ### 📝 Commits (1) - [`6d9e348`](https://github.com/Googolplexed0/zotify/commit/6d9e348d82af3093eb396711ad6db85428367e77) Fix TypeError when handling None tracks/episodes in playlists ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `zotify/api.py` (+7 -3) </details> ### 📄 Description - Add null check in Playlist.fetch_items() before accessing item[TRACK] properties - Filter out None values in parse_linked_objs() to prevent subscript errors - Prevents crashes when playlist contains unavailable or deleted items --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 04:57: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/zotify#171
No description provided.