feat(dl): change --export flag with manifest URL, subtitles, and track info

changed --export flag to export decryption keys, manifest URLs, subtitle URLs, and track info to a JSON file in the configurable exports directory. Manifest URLs are captured from DASH, ISM, and HLS parsers and propagated through the Tracks system via a new manifest_url attribute. Deduplicate Widevine/PlayReady export logic into a shared _write_export helper with dedicated EXPORT_LOCK. Add Tracks.filter() method that preserves metadata when filtering tracks by predicate.
This commit is contained in:
imSp4rky
2026-04-02 10:29:22 -06:00
parent 655e4197c3
commit fabc96ba1b
8 changed files with 97 additions and 43 deletions

View File

@@ -247,6 +247,7 @@ class DASH:
# only get tracks from the first main-content period
break
tracks.manifest_url = self.url
return tracks
@staticmethod