diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 14:01:22 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-22 14:01:22 +0200 |
commit | 53f49fa9279ac86944dfdc48f80a5783430632bf (patch) | |
tree | 6732d9b1f167d4cfe091b30378e1d5c6a8f4a4cb /yt_dlp/update.sh | |
parent | build(package): Include python `blake3` dependency (diff) | |
download | yt-53f49fa9279ac86944dfdc48f80a5783430632bf.tar.gz yt-53f49fa9279ac86944dfdc48f80a5783430632bf.zip |
perf(raw_update.py)!: Don't fetch entries that are already in the database
Testing has resulted in a speed-up of circa 3400% (updates of 1 subscription (which is already fully stored) are now ca. 1 sec from previously 34 sec). BREAKING CHANGE: The extractor hash is now calculated from the `id` and not the `webpage_url` field requiring a complete re-fetch of all stored videos. ```bash $# export your subscriptions: $ yt subs list --urls > subs.txt $# remove the old database $ mv ~/.local/share/yt/videos.sqlite{,.old} $# reimport the subsciptions $ yt subs import subs.txt $# refetch all videos $ yt upadate ```
Diffstat (limited to 'yt_dlp/update.sh')
0 files changed, 0 insertions, 0 deletions