From fe58c343f762bb21fd705470fd980d30157a1aeb Mon Sep 17 00:00:00 2001 From: jpovixwm <53523617+jpovixwm@users.noreply.github.com> Date: Thu, 22 Sep 2022 11:23:06 +0200 Subject: [PATCH] yt-dlp: Persist "ytdlp_plugins" directory (#3956) * yt-dlp: Persist "ytdlp_plugins" directory * yt-dlp: Fix json formatting Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/yt-dlp.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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": {