diff --git a/bucket/yt-dlp.json b/bucket/yt-dlp.json index 5e68568c7d..d7dfaf4b4e 100644 --- a/bucket/yt-dlp.json +++ b/bucket/yt-dlp.json @@ -17,12 +17,11 @@ } }, "bin": "yt-dlp.exe", - "pre_install": [ - "$manifest.persist | ForEach-Object {", - " if (-not (Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType file | Out-Null }", - "}" + "pre_install": "if (-not (Test-Path \"$persist_dir\\yt-dlp.conf\")) { New-Item \"$dir\\yt-dlp.conf\" -ItemType file | Out-Null }", + "persist": [ + "yt-dlp.conf", + "ytdlp_plugins" ], - "persist": "yt-dlp.conf", "checkver": "github", "autoupdate": { "architecture": {