integrate quickjs in the app
This commit is contained in:
parent
9240242240
commit
63dc75f106
2 changed files with 5 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue