fix: add track_number to compact entry extra keys

Added track_number to the set of keys preserved when compacting persisted playlist entries, ensuring this metadata is retained for accurate track ordering and display.
This commit is contained in:
jahruz67
2026-07-24 19:49:48 -07:00
parent 1839e5484d
commit 8a29f3a084
+1 -1
View File
@@ -510,7 +510,7 @@ def _short_title_for_failed_url(url: str) -> str:
return hostname or url
_COMPACT_ENTRY_EXTRA_KEYS = frozenset(("n_entries", "__last_playlist_index"))
_COMPACT_ENTRY_EXTRA_KEYS = frozenset(("n_entries", "__last_playlist_index", "track_number"))
def _compact_persisted_entry(entry: Any) -> Optional[dict[str, Any]]: