From a5654e877f64e7c97d7d334ecec8b4a05f2e66cc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 29 Dec 2025 19:09:05 +0000 Subject: [PATCH] rename media plugin to ytdlp with backwards-compatible aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename archivebox/plugins/media/ → archivebox/plugins/ytdlp/ - Rename hook script on_Snapshot__63_media.bg.py → on_Snapshot__63_ytdlp.bg.py - Update config.json: YTDLP_* as primary keys, MEDIA_* as x-aliases - Update templates CSS classes: media-* → ytdlp-* - Fix gallerydl bug: remove incorrect dependency on media plugin output - Update all codebase references to use YTDLP_* and SAVE_YTDLP - Add backwards compatibility test for MEDIA_ENABLED alias --- README.md | 4 +- TODO_hook_concurrency.md | 6 +- archivebox/cli/tests_piping.py | 2 +- .../gallerydl/on_Snapshot__64_gallerydl.bg.py | 18 +---- .../plugins/{media => ytdlp}/binaries.jsonl | 0 .../plugins/{media => ytdlp}/config.json | 22 +++--- .../on_Snapshot__63_ytdlp.bg.py} | 51 +++++++------ .../{media => ytdlp}/templates/embed.html | 4 +- .../templates/fullscreen.html | 4 +- .../{media => ytdlp}/templates/icon.html | 0 .../{media => ytdlp}/templates/thumbnail.html | 6 +- .../tests/test_ytdlp.py} | 73 ++++++++++++------- archivebox/tests/test_migrations_08_to_09.py | 2 +- archivebox/tests/test_migrations_helpers.py | 2 +- docker-compose.yml | 2 +- etc/ArchiveBox.conf.default | 4 +- tests/fixtures.py | 2 +- tests/test_cli_config.py | 6 +- tests/test_recursive_crawl.py | 4 +- 19 files changed, 110 insertions(+), 102 deletions(-) rename archivebox/plugins/{media => ytdlp}/binaries.jsonl (100%) rename archivebox/plugins/{media => ytdlp}/config.json (66%) rename archivebox/plugins/{media/on_Snapshot__63_media.bg.py => ytdlp/on_Snapshot__63_ytdlp.bg.py} (79%) rename archivebox/plugins/{media => ytdlp}/templates/embed.html (75%) rename archivebox/plugins/{media => ytdlp}/templates/fullscreen.html (73%) rename archivebox/plugins/{media => ytdlp}/templates/icon.html (100%) rename archivebox/plugins/{media => ytdlp}/templates/thumbnail.html (78%) rename archivebox/plugins/{media/tests/test_media.py => ytdlp/tests/test_ytdlp.py} (72%) diff --git a/README.md b/README.md index 66545085..2da5f877 100644 --- a/README.md +++ b/README.md @@ -764,7 +764,7 @@ The configuration is documented here: **[Configuration Wiki](https://github.com/ TIMEOUT=240 # default: 60 add more seconds on slower networks CHECK_SSL_VALIDITY=False # default: True False = allow saving URLs w/ bad SSL SAVE_ARCHIVEDOTORG=False # default: True False = disable Archive.org saving -MAX_MEDIA_SIZE=1500m # default: 750m raise/lower youtubedl output size +YTDLP_MAX_SIZE=1500m # default: 750m raise/lower yt-dlp output size
PUBLIC_INDEX=True # default: True whether anon users can view index PUBLIC_SNAPSHOTS=True # default: True whether anon users can view pages @@ -1089,7 +1089,7 @@ Because ArchiveBox is designed to ingest a large volume of URLs with multiple co