MCPcopy
hub / github.com/alexta69/metube / _compact_persisted_entry

Function _compact_persisted_entry

app/ytdl.py:359–367  ·  view source on GitHub ↗
(entry: Any)

Source from the content-addressed store, hash-verified

357
358
359def _compact_persisted_entry(entry: Any) -> Optional[dict[str, Any]]:
360 if not isinstance(entry, dict):
361 return None
362 compact = {
363 key: value
364 for key, value in entry.items()
365 if key.startswith("playlist") or key.startswith("channel") or key in _COMPACT_ENTRY_EXTRA_KEYS
366 }
367 return compact or None
368
369
370def _download_info_to_record(

Calls 1

itemsMethod · 0.80