small stuff

This commit is contained in:
deniscerri 2025-11-22 20:51:58 +01:00
parent 7355bc7948
commit 08eb733c94
No known key found for this signature in database
GPG key ID: 95C43D517D830350
6 changed files with 29 additions and 4 deletions

View file

@ -155,7 +155,7 @@ dependencies {
implementation "io.github.junkfood02.youtubedl-android:aria2c:0.18.1"
// implementation "io.github.junkfood02.youtubedl-android:library:0.17.4"
implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.17.2"
implementation "io.github.junkfood02.youtubedl-android:ffmpeg:0.18.1"
// implementation "io.github.junkfood02.youtubedl-android:aria2c:0.17.2"
implementation "androidx.appcompat:appcompat:$appCompatVer"

View file

@ -89,7 +89,7 @@ class SettingsViewModel(private val application: Application) : AndroidViewModel
val saveFile = File("${dir.absolutePath}/YTDLnis_Backup_${BuildConfig.VERSION_NAME}_${currentTime.get(
Calendar.YEAR)}-${currentTime.get(Calendar.MONTH) + 1}-${currentTime.get(
Calendar.DAY_OF_MONTH)}.json")
Calendar.DAY_OF_MONTH)}_${currentTime.get(Calendar.HOUR)}-${currentTime.get(Calendar.MINUTE)}-${currentTime.get(Calendar.SECOND)}.json")
saveFile.delete()
withContext(Dispatchers.IO) {

View file

@ -1384,7 +1384,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
}
if (downloadItem.videoPreferences.embedSubs) {
if (sharedPreferences.getBoolean("no_keep_subs", false)) {
if (sharedPreferences.getBoolean("no_keep_subs", false) && (downloadItem.videoPreferences.writeSubs || downloadItem.videoPreferences.writeAutoSubs)) {
request.addOption("--compat-options", "no-keep-subs")
}

View file

@ -81,6 +81,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/run_command"
android:elevation="0dp"
app:elevation="0dp"
android:stateListAnimator="@null"
app:icon="@drawable/ic_baseline_keyboard_arrow_right_24"
app:layout_anchor="@id/bottomAppBar" />

View file

@ -53,6 +53,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:clickable="false"
android:stateListAnimator="@null"
android:elevation="0dp"
app:borderWidth="0dp"
app:cornerRadius="10dp"
@ -66,7 +67,6 @@
<HorizontalScrollView
android:layout_width="wrap_content"
android:scrollbars="none"
android:paddingHorizontal="20dp"
android:layout_height="wrap_content">
<com.google.android.material.chip.ChipGroup
@ -74,6 +74,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="horizontal"
android:elevation="0dp"
android:paddingHorizontal="20dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/url">
@ -85,6 +87,8 @@
android:clickable="true"
android:minWidth="30dp"
app:cornerRadius="10dp"
android:stateListAnimator="@null"
android:elevation="0dp"
app:chipIcon="@drawable/ic_clock"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -100,6 +104,8 @@
android:minWidth="30dp"
app:chipIcon="@drawable/ic_image"
app:cornerRadius="10dp"
android:stateListAnimator="@null"
android:elevation="0dp"
android:text="@string/thumbnail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -113,6 +119,8 @@
android:clickable="false"
android:minWidth="30dp"
app:chipIcon="@drawable/ic_format"
android:stateListAnimator="@null"
android:elevation="0dp"
app:cornerRadius="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -125,6 +133,8 @@
android:layout_height="wrap_content"
android:clickable="false"
android:minWidth="30dp"
android:stateListAnimator="@null"
android:elevation="0dp"
app:cornerRadius="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -138,6 +148,8 @@
android:clickable="false"
android:minWidth="30dp"
app:cornerRadius="10dp"
android:stateListAnimator="@null"
android:elevation="0dp"
app:chipIcon="@drawable/ic_code"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -150,6 +162,8 @@
android:layout_height="wrap_content"
android:clickable="false"
android:minWidth="30dp"
android:stateListAnimator="@null"
android:elevation="0dp"
app:cornerRadius="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -163,6 +177,8 @@
android:clickable="false"
android:minWidth="30dp"
app:cornerRadius="10dp"
android:stateListAnimator="@null"
android:elevation="0dp"
android:text="@string/command"
app:chipIcon="@drawable/ic_baseline_keyboard_arrow_right_24"
app:layout_constraintBottom_toBottomOf="parent"
@ -177,6 +193,8 @@
android:layout_height="wrap_content"
android:clickable="false"
android:minWidth="30dp"
android:stateListAnimator="@null"
android:elevation="0dp"
app:cornerRadius="10dp"
android:text="@string/location"
app:chipIcon="@drawable/baseline_folder_24"

View file

@ -83,6 +83,7 @@
android:id="@+id/title"
android:layout_width="0dp"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="10dp"
android:layout_height="wrap_content"
android:ellipsize="end"
@ -119,6 +120,7 @@
app:elevation="0dp"
android:elevation="0dp"
app:borderWidth="0dp"
android:stateListAnimator="@null"
android:contentDescription="@string/audio"
android:layout_height="55dp"
android:layout_marginHorizontal="5dp"
@ -132,6 +134,8 @@
android:layout_width="55dp"
android:layout_height="55dp"
app:elevation="0dp"
android:elevation="0dp"
android:stateListAnimator="@null"
android:contentDescription="@string/video"
android:layout_marginHorizontal="5dp"
app:icon="@drawable/ic_video"