This commit is contained in:
deniscerri 2023-09-17 11:44:01 +02:00
parent d48d8fcdaa
commit 48d4a2fa9f
No known key found for this signature in database
GPG key ID: 95C43D517D830350
13 changed files with 54 additions and 22 deletions

View file

@ -9,8 +9,8 @@ plugins {
def properties = new Properties()
def versionMajor = 1
def versionMinor = 6
def versionPatch = 6
def versionBuild = 3 // bump for dogfood builds, public betas, etc.
def versionPatch = 7
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
def versionExt = ""
if (versionBuild > 0){

View file

@ -32,12 +32,15 @@ class App : Application() {
override fun onCreate() {
super.onCreate()
instance = this
createNotificationChannels()
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this@App)
setDefaultValues()
applicationScope = CoroutineScope(SupervisorJob())
applicationScope.launch((Dispatchers.IO)) {
try {
createNotificationChannels()
initLibraries()
val appVer = sharedPreferences.getString("version", "")!!
if(appVer.isEmpty() || appVer != BuildConfig.VERSION_NAME){

View file

@ -453,7 +453,7 @@ class DownloadViewModel(application: Application) : AndroidViewModel(application
val videoFormats = resources.getStringArray(R.array.video_formats_values)
val formats = mutableListOf<Format>()
val containerPreference = sharedPreferences.getString("video_format", "")
videoFormats.forEach { formats.add(Format(it, containerPreference!!,"Default","", "",0, it)) }
videoFormats.forEach { formats.add(Format(it, containerPreference!!,"Default","", "",0, it.split("_")[0])) }
formatIDPreference.forEach { formats.add(Format(it, containerPreference!!,"Default","", "",1, it)) }
return formats
}

View file

@ -653,7 +653,7 @@ class InfoUtil(private val context: Context) {
urls = urlList.joinToString("\n")
}
val url = if (jsonObject.has("url")){
val url = if (jsonObject.has("url") && results.size > 1){
jsonObject.getString("url")
}else{
if (Patterns.WEB_URL.matcher(query).matches()){
@ -1201,7 +1201,7 @@ class InfoUtil(private val context: Context) {
//format logic
val defaultFormats = context.resources.getStringArray(R.array.video_formats)
val defaultFormats = context.resources.getStringArray(R.array.video_formats_values)
var usingGenericFormat = false
var videof = downloadItem.format.format_id
@ -1211,7 +1211,7 @@ class InfoUtil(private val context: Context) {
}else if (videof == context.resources.getString(R.string.worst_quality) || videof == "worst") {
videof = "worst"
}else if (defaultFormats.contains(videof)) {
videof = "bestvideo[height<="+videof.substring(0, videof.length -1)+"]"
videof = "bestvideo[height<="+videof.split("_")[0].dropLast(1)+"]"
}
val preferredFormatIDs = sharedPreferences.getString("format_id", "").toString()

View file

@ -173,10 +173,9 @@ class NotificationUtil(var context: Context) {
}
fun createDownloadFinished(title: String?,
filepath: List<String>?,
channel: String
filepath: List<String>?
) {
val notificationBuilder = getBuilder(channel)
val notificationBuilder = getBuilder(DOWNLOAD_FINISHED_CHANNEL_ID)
notificationBuilder
.setContentTitle("${context.getString(R.string.downloaded)} $title")

View file

@ -202,8 +202,7 @@ class DownloadWorker(
notificationUtil.cancelDownloadNotification(downloadItem.id.toInt())
notificationUtil.createDownloadFinished(
downloadItem.title, if (finalPaths?.first().equals(context.getString(R.string.unfound_file))) null else finalPaths,
NotificationUtil.DOWNLOAD_FINISHED_CHANNEL_ID
downloadItem.title, if (finalPaths?.first().equals(context.getString(R.string.unfound_file))) null else finalPaths
)
if (wasQuickDownloaded){

View file

@ -47,7 +47,7 @@
<TextView
android:id="@+id/format_note"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
app:layout_constraintHorizontal_bias="0.0"

View file

@ -11,6 +11,7 @@
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
<item name="snackbarStyle">@style/snackBarStyle</item>
<item name="preferenceTheme">@style/PreferenceTheme</item>
</style>
<style name="Theme.Red" parent="BaseTheme">

View file

@ -275,8 +275,7 @@
<string name="format_order">Renditja e formatit</string>
<string name="hide_thumbnails">Fshehi Thumbnailet</string>
<string name="force_keyframes_summary">Proçes më i ngadaltë, por prerje më të sakta</string>
<string name="subtitle_format">Formati i titrave
\n</string>
<string name="subtitle_format">Formati i titrave</string>
<string name="show_terminal">Shfaq Terminalin në fletën e shpërndarjes</string>
<string name="saved">Të ruajtura</string>
<string name="clear_saved">Pastro të ruajturat</string>

View file

@ -49,11 +49,11 @@
<string-array name="video_formats_values">
<item>worst</item>
<item>360p</item>
<item>480p</item>
<item>720p</item>
<item>1080p</item>
<item>1440p</item>
<item>2160p</item>
<item>480p_ytdlnisgeneric</item>
<item>720p_ytdlnisgeneric</item>
<item>1080p_ytdlnisgeneric</item>
<item>1440p_ytdlnisgeneric</item>
<item>2160p_ytdlnisgeneric</item>
<item>best</item>
</string-array>

View file

@ -281,7 +281,7 @@
<string name="use_extra_commands">Add Extra Commands</string>
<string name="use_extra_commands_summary">For Audio / Video downloads. Add extra commands along with the GUI configuration</string>
<string name="current">Current Command</string>
<string name="subtitle_format">Subtitle Format\n</string>
<string name="subtitle_format">Subtitle Format</string>
<string name="hide_thumbnails">Hide Thumbnails</string>
<string name="show_terminal">Show Terminal in Share Menu</string>
<string name="saved">Saved</string>

View file

@ -10,6 +10,7 @@
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
<item name="snackbarStyle">@style/snackBarStyle</item>
<item name="preferenceTheme">@style/PreferenceTheme</item>
</style>
<style name="Theme.Red" parent="BaseTheme">

View file

@ -0,0 +1,30 @@
Beta Releases will be on Github from now on, unless there is a small thing you will find quick builds on telegram
Fixed Terminal not showing shared link
Changed Terminal share logo color
Aded javanese language
Added bengali india language
Fixed app adding bestaudio in format even if remove audio is set
Made app fetch only link parts from sources like pinterest that also include text in front
Added ability to switch to the beta channel for updating. You can also downgrade to the latest release version
Fixed app not restarting when changing language
Added word wrap toggles for logs and terminal
Added Auto Preferred Download Type. It will open as Audio if the site is known to post audio files and video for the rest
Added collected file size in multi download card
Fixed app not selecting best format
Fixed update in beta channel not working
Fixed Youtube Music Playlist not loading
Fixed Sponsorblock not showing as checked in multiple download card #271
Added playlist title and playlist index metadata in playlist items so u can use them in filename templates #272 #270
Added -a path.txt if you share a text file to the app and the preferred download type is command or terminal
Fixed app cancelling workmanager earlier than expected
Added title and author sync between audio and video tabs #241
Fix format details fps in arabic being rtl
Removed h264 from codec
Fixed Search engine not getting updated in home when changing in settings fragment.
Added language preference in android 13 and up
Added multiple selection for command templates
Fix issue when app crashes when creating config files for items with weird titles
Fix auto preferred download type not working correctly in yt music
Add multiline titles of preferences
Fix format item and details sheet on RTL languages
Fix app conflicting format id with a generic format id