pull/655/head
deniscerri 2 years ago
parent 4957810984
commit dc5b66c575
No known key found for this signature in database
GPG Key ID: 95C43D517D830350

@ -41,7 +41,7 @@
[![community](https://img.shields.io/badge/Telegram-Updates-red?style=flat-square&logo=telegram)](https://t.me/ytdlnisupdates)
### The links above are the only trusted sources of YTDLnis. Everything else is not related to me.
### Only the links above are the only trusted sources of YTDLnis. Everything else is not related to me. YTDLnis doesn't have a personal website.
</div>

@ -12,7 +12,7 @@ def properties = new Properties()
def versionMajor = 1
def versionMinor = 8
def versionPatch = 1
def versionBuild = 1 // bump for dogfood builds, public betas, etc.
def versionBuild = 2 // bump for dogfood builds, public betas, etc.
def isBeta = false
def versionExt = ""

@ -75,8 +75,6 @@ class UpdateSettingsFragment : BaseSettingsFragment() {
ytdlVersion = findPreference("ytdl-version")
ytdlSource = findPreference("ytdlp_source_label")
ytdlpUtil = YTDLPUtil(requireContext())
setYTDLPVersion()
ytdlSource?.apply {
summary = preferences.getString("ytdlp_source_label", "")
setOnPreferenceClickListener {
@ -90,6 +88,13 @@ class UpdateSettingsFragment : BaseSettingsFragment() {
}
}
ytdlVersion?.apply {
summary = preferences.getString("ytdl-version", "")
setOnPreferenceClickListener {
initYTDLUpdate()
true
}
}
ytdlVersion!!.setOnPreferenceClickListener {
initYTDLUpdate()
true

@ -38,6 +38,7 @@ import androidx.annotation.OptIn
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.content.res.AppCompatResources
import androidx.compose.ui.unit.dp
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.text.HtmlCompat
import androidx.core.text.parseAsHtml
@ -49,6 +50,7 @@ import androidx.fragment.app.FragmentManager
import androidx.lifecycle.LifecycleOwner
import androidx.preference.PreferenceManager
import com.afollestad.materialdialogs.utils.MDUtil.getStringArray
import com.afollestad.materialdialogs.utils.MDUtil.textChanged
import com.deniscerri.ytdl.MainActivity
import com.deniscerri.ytdl.R
import com.deniscerri.ytdl.database.models.CommandTemplate
@ -1060,9 +1062,13 @@ object UiUtil {
withContext(Dispatchers.Main){
view.findViewById<View>(R.id.suggested).visibility = View.VISIBLE
chips.forEach {
it.isChecked = editText.text.contains(it.text)
it.isChecked = editText.text.split(",").any { it2 -> it2 == it.tag.toString() }
chipGroup!!.addView(it)
}
editText.textChanged {
chipGroup.children.forEach { (it as Chip).isChecked = editText.text.split(",").any { it2 -> it2 == it.tag.toString() } }
}
}
}

@ -1,69 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent"
android:padding="10dp"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="20dp"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/subtitle"
style="@style/Widget.Material3.TextInputLayout.FilledBox"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/subtitle"
style="@style/Widget.Material3.TextInputLayout.FilledBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/subtitle_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="10"
android:inputType="textMultiLine" />
</com.google.android.material.textfield.TextInputLayout>
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/suggested"
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/subtitle_edittext"
android:layout_width="match_parent"
android:padding="10dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/subtitle"
android:text="@string/suggested" />
android:maxLines="10"
android:inputType="textMultiLine" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintHeight_max="200dp"
android:paddingHorizontal="10dp"
app:layout_constraintVertical_bias="0.0"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/suggested">
<com.google.android.material.chip.ChipGroup
android:id="@+id/subtitle_suggested_chipgroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:chipSpacingVertical="-7dp"
app:chipSpacingHorizontal="5dp"
app:selectionRequired="false"
app:singleSelection="false">
</com.google.android.material.textfield.TextInputLayout>
</com.google.android.material.chip.ChipGroup>
<TextView
android:id="@+id/suggested"
android:layout_width="match_parent"
android:textColor="?attr/colorPrimary"
android:textStyle="bold"
android:paddingVertical="15dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/subtitle"
android:text="@string/suggested" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintHeight_max="200dp"
app:layout_constraintVertical_bias="0.0"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/suggested">
<com.google.android.material.chip.ChipGroup
android:id="@+id/subtitle_suggested_chipgroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:chipSpacingVertical="-7dp"
app:chipSpacingHorizontal="5dp"
app:selectionRequired="false"
app:singleSelection="false">
</ScrollView>
</com.google.android.material.chip.ChipGroup>
</ScrollView>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>

@ -1014,96 +1014,96 @@
</string-array>
<string-array name="subtitle_langs">
<item>all</item>,
<item>live_chat</item>,
<item>af</item>,
<item>az</item>,
<item>id</item>,
<item>ms</item>,
<item>bs</item>,
<item>ca</item>,
<item>cs</item>,
<item>da</item>,
<item>de</item>,
<item>et</item>,
<item>en-IN</item>,
<item>en-GB</item>,
<item>en</item>,
<item>en.*</item>,
<item>es</item>,
<item>es-419</item>,
<item>es-US</item>,
<item>es.*</item>,
<item>eu</item>,
<item>fil</item>,
<item>fr</item>,
<item>fr-CA</item>,
<item>fr.*</item>,
<item>gl</item>,
<item>hr</item>,
<item>zu</item>,
<item>is</item>,
<item>it</item>,
<item>sw</item>,
<item>lv</item>,
<item>lt</item>,
<item>hu</item>,
<item>nl</item>,
<item>no</item>,
<item>uz</item>,
<item>pl</item>,
<item>pt-PT</item>,
<item>pt</item>,
<item>pt.*</item>,
<item>ro</item>,
<item>sq</item>,
<item>sk</item>,
<item>sl</item>,
<item>sr-Latn</item>,
<item>fi</item>,
<item>sv</item>,
<item>vi</item>,
<item>tr</item>,
<item>be</item>,
<item>bg</item>,
<item>ky</item>,
<item>kk</item>,
<item>mk</item>,
<item>mn</item>,
<item>ru</item>,
<item>sr</item>,
<item>uk</item>,
<item>el</item>,
<item>hy</item>,
<item>iw</item>,
<item>ur</item>,
<item>ar</item>,
<item>fa</item>,
<item>ne</item>,
<item>mr</item>,
<item>hi</item>,
<item>as</item>,
<item>bn</item>,
<item>pa</item>,
<item>gu</item>,
<item>or</item>,
<item>ta</item>,
<item>te</item>,
<item>kn</item>,
<item>ml</item>,
<item>si</item>,
<item>th</item>,
<item>lo</item>,
<item>my</item>,
<item>ka</item>,
<item>am</item>,
<item>km</item>,
<item>zh-CN</item>,
<item>zh-TW</item>,
<item>zh-HK</item>,
<item>zh.*</item>,
<item>ja</item>,
<item>af</item>
<item>am</item>
<item>ar</item>
<item>as</item>
<item>az</item>
<item>be</item>
<item>bg</item>
<item>bn</item>
<item>bs</item>
<item>ca</item>
<item>cs</item>
<item>da</item>
<item>de</item>
<item>el</item>
<item>en</item>
<item>en-GB</item>
<item>en-IN</item>
<item>en.*</item>
<item>es</item>
<item>es-419</item>
<item>es-US</item>
<item>es.*</item>
<item>et</item>
<item>eu</item>
<item>fa</item>
<item>fi</item>
<item>fil</item>
<item>fr</item>
<item>fr-CA</item>
<item>fr.*</item>
<item>gl</item>
<item>gu</item>
<item>hi</item>
<item>hr</item>
<item>hu</item>
<item>hy</item>
<item>id</item>
<item>is</item>
<item>it</item>
<item>iw</item>
<item>ja</item>
<item>ka</item>
<item>kk</item>
<item>km</item>
<item>kn</item>
<item>ko</item>
<item>ky</item>
<item>lo</item>
<item>lt</item>
<item>lv</item>
<item>ml</item>
<item>mk</item>
<item>mn</item>
<item>mr</item>
<item>ms</item>
<item>my</item>
<item>ne</item>
<item>nl</item>
<item>no</item>
<item>or</item>
<item>pa</item>
<item>pl</item>
<item>pt</item>
<item>pt-PT</item>
<item>pt.*</item>
<item>ro</item>
<item>ru</item>
<item>si</item>
<item>sk</item>
<item>sl</item>
<item>sq</item>
<item>sr</item>
<item>sr-Latn</item>
<item>sv</item>
<item>sw</item>
<item>ta</item>
<item>te</item>
<item>th</item>
<item>tr</item>
<item>uk</item>
<item>ur</item>
<item>uz</item>
<item>vi</item>
<item>zh-CN</item>
<item>zh-HK</item>
<item>zh-TW</item>
<item>zh.*</item>
<item>zu</item>
<item>all</item>
<item>live_chat</item>
</string-array>
<array name="swipe_gestures">

@ -0,0 +1,9 @@
# What's Changed
- Extra Command bug fixes
- Added ability to quickly download all saved items from the top menu
- Made app delete bad info json file if it failed with JSONDecodeError
- Sorted the subtitles in the subtitle selection dialog, and they show which ones are selected correctly
- Prevented app from calling yt-dlp every time on updating settings to check version
Hopefully this release is stable enough since there will be some few changes in the next version
Loading…
Cancel
Save