integrate quickjs in the app

This commit is contained in:
deniscerri 2025-11-13 23:51:27 +01:00
parent 9240242240
commit 63dc75f106
No known key found for this signature in database
GPG key ID: 95C43D517D830350
2 changed files with 5 additions and 4 deletions

View file

@ -149,12 +149,13 @@ dependencies {
// implementation "com.github.yausername.youtubedl-android:aria2c:$youtubedlAndroidVer"
implementation "io.github.junkfood02.youtubedl-android:library:0.18.0"
implementation "io.github.deniscerri.youtubedl-android:library:0.19.0"
//implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.18.0"
implementation "io.github.junkfood02.youtubedl-android:aria2c:0.18.0"
implementation "io.github.deniscerri.youtubedl-android:aria2c:0.19.0"
// implementation "io.github.junkfood02.youtubedl-android:library:0.17.4"
implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.17.2"
implementation "io.github.deniscerri.youtubedl-android:ffmpeg:0.19.0"
// implementation "io.github.junkfood02.youtubedl-android:aria2c:0.17.2"
implementation "androidx.appcompat:appcompat:$appCompatVer"

View file

@ -1442,7 +1442,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
if (downloadItem.extraCommands.isNotBlank() && downloadItem.type != DownloadViewModel.Type.command){
// check for cache dir as extra command and add it as an actual option to prevent --no-cache-dir in youtubedl_android
val cacheDirArg = """--cache-dir\s+"([^"]+)"""".toRegex().find(downloadItem.extraCommands)
val cacheDirArg = """--cache-dir\s+(?:"([^"]+)"|(\S+))""".toRegex().find(downloadItem.extraCommands)
if (cacheDirArg != null) {
ytDlRequest.addOption("--cache-dir", cacheDirArg.groupValues.last().replace("\"", ""))
runCatching {