mirror of
https://github.com/alexta69/metube.git
synced 2026-09-21 13:35:01 +00:00
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:
+1
-1
@@ -510,7 +510,7 @@ def _short_title_for_failed_url(url: str) -> str:
|
|||||||
return hostname or url
|
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]]:
|
def _compact_persisted_entry(entry: Any) -> Optional[dict[str, Any]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user