From 0c892f3cf119ed5cabdfccf7b76a00ebacaa43d3 Mon Sep 17 00:00:00 2001 From: erinhmclark Date: Tue, 18 Mar 2025 11:44:08 +0000 Subject: [PATCH] Temp fix for tests by setting path in manifest. --- scripts/potoken_provider/setup_pot_provider.sh | 2 +- src/auto_archiver/modules/generic_extractor/__manifest__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/potoken_provider/setup_pot_provider.sh b/scripts/potoken_provider/setup_pot_provider.sh index 470d1a3..e0f6d7c 100644 --- a/scripts/potoken_provider/setup_pot_provider.sh +++ b/scripts/potoken_provider/setup_pot_provider.sh @@ -27,5 +27,5 @@ cd "$BGUTIL_DIR/server" || exit 1 yarn install --frozen-lockfile npx tsc -# The built script is now available and can be used by the generic extractor +# The transpiled POT generation script is now available and will be used automatically by the generic extractor echo "PO Token provider script is ready: $BGUTIL_DIR/server/build/generate_once.js" diff --git a/src/auto_archiver/modules/generic_extractor/__manifest__.py b/src/auto_archiver/modules/generic_extractor/__manifest__.py index 9ef1cb3..bd75c1c 100644 --- a/src/auto_archiver/modules/generic_extractor/__manifest__.py +++ b/src/auto_archiver/modules/generic_extractor/__manifest__.py @@ -75,7 +75,7 @@ If you are having issues with the extractor, you can review the version of `yt-d "help": "Use to limit the number of videos to download when a channel or long page is being extracted. 'inf' means no limit.", }, "extractor_args": { - "default": {}, + "default": {"youtube": {"getpot_bgutil_script": "scripts/potoken_provider/bgutil-ytdlp-pot-provider/server/build/generate_once.js"}}, "help": "Additional arguments to pass to the yt-dlp extractor. See https://github.com/yt-dlp/yt-dlp/blob/master/README.md#extractor-arguments.", "type": "json_loader", },