cleanup readmes, slight fix

pull/815/head
deniscerri 1 year ago
parent 06538f0762
commit 397c280a06
No known key found for this signature in database
GPG Key ID: 95C43D517D830350

@ -731,7 +731,6 @@ Accepted variables:
TYPE -> it can be: audio,video,command
BACKGROUND -> whether the app downloads on its own and wont show the download card if you have it on
COMMAND -> if your preferred type is audio/video or you set the TYPE variable as so, this will be appended to your Extra Commands string. If the type is command, the whole command will be used for the download
The intent that needs to be created is of android.intent.action.SEND and the intent text should be the url that you need to download.
> # 1.6.9 (2023-11)

@ -119,7 +119,6 @@ Variables aceptadas:
<b>TIPO</b> -> puede ser: audio, video, comando <br/>
<b>BACKGROUND</b> -> puede ser: verdadero, falso. Si es cierto, la aplicación no mostrará la tarjeta de descarga pase lo que pase y ejecutará la descarga en segundo plano. <br/>
<b>COMMAND</b> -> Si su tipo preferido es audio/video o configura la variable TIPO como uno de ellos, esto se agregará a su cadena de Comandos adicionales. Si el tipo es comando, todo el comando que escribió aquí se usará para la descarga. <br/>
### Tasker Ejemplo de descarga de un audio en segundo plano
1. Crear tarea de intención de envío

@ -129,7 +129,6 @@ TaskerやMacrodroidなどのアプリでインテントを使用して、ユー
<b>TYPE</b> -> audio, video, commandのいずれか <br/>
<b>BACKGROUND</b> -> true, falseのいずれか。trueの場合、アプリはダウンロードカードを表示せず、バックグラウンドでダウンロードを実行 <br/>
<b>COMMAND</b> -> 優先タイプがaudio/videoの場合、またはTYPE変数をそれらのいずれかに設定した場合、これは追加コマンド文字列に追加されます。タイプがcommandの場合、ここに書いたコマンド全体がダウンロードに使用されます <br/>
### Taskerでバックグラウンドでオーディオをダウンロードする例
1. 送信インテントタスクを作成

@ -130,7 +130,6 @@ Accepted variables:
<b>TYPE</b> -> it can be: audio,video,command <br/>
<b>BACKGROUND</b> -> it can be: true,false. If its true the app won't show the download card no matter what and run the download in the background <br/>
<b>COMMAND</b> -> if your preferred type is audio/video or you set the TYPE variable as one of them, this will be appended to your Extra Commands string. If the type is command, the whole command you wrote here will be used for the download <br/>
### Tasker Example of downloading an audio in the background
1. Create Send Intent task

@ -1012,7 +1012,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
val useArtistTags = if (downloadItem.url.isYoutubeURL()) "artists,artist," else ""
if (downloadItem.author.isBlank()) {
metadataCommands.addOption("--parse-metadata", """%(${useArtistTags}uploader,channel,creator|null)l:^(?P<uploader>.*?)(?:(?= - Topic)|$)""")
metadataCommands.addOption("--parse-metadata", """%(${useArtistTags}uploader,channel,creator|)l:^(?P<uploader>.*?)(?:(?= - Topic)|$)""")
}
if (downloadItem.audioPreferences.splitByChapters && downloadItem.downloadSections.isBlank()){
@ -1384,7 +1384,9 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
val cacheDirArg = """(--cache-dir (".*"))""".toRegex().find(downloadItem.extraCommands)
if (cacheDirArg != null) {
ytDlRequest.addOption("--cache-dir", cacheDirArg.groupValues.last().replace("\"", ""))
downloadItem.extraCommands.replace(cacheDirArg.value, "")
kotlin.runCatching {
downloadItem.extraCommands = downloadItem.extraCommands.replace(cacheDirArg.value, "")
}
}
request.addOption(downloadItem.extraCommands)
}

Loading…
Cancel
Save