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>
This commit is contained in:
jpovixwm 2022-09-22 11:23:06 +02:00 committed by GitHub
parent f9ecc9cfe0
commit fe58c343f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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": {