1.6.7
This commit is contained in:
parent
d48d8fcdaa
commit
48d4a2fa9f
13 changed files with 54 additions and 22 deletions
|
|
@ -9,8 +9,8 @@ plugins {
|
||||||
def properties = new Properties()
|
def properties = new Properties()
|
||||||
def versionMajor = 1
|
def versionMajor = 1
|
||||||
def versionMinor = 6
|
def versionMinor = 6
|
||||||
def versionPatch = 6
|
def versionPatch = 7
|
||||||
def versionBuild = 3 // bump for dogfood builds, public betas, etc.
|
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
|
||||||
def versionExt = ""
|
def versionExt = ""
|
||||||
|
|
||||||
if (versionBuild > 0){
|
if (versionBuild > 0){
|
||||||
|
|
|
||||||
|
|
@ -32,12 +32,15 @@ class App : Application() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
instance = this
|
instance = this
|
||||||
createNotificationChannels()
|
|
||||||
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
|
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this@App)
|
||||||
setDefaultValues()
|
setDefaultValues()
|
||||||
|
|
||||||
applicationScope = CoroutineScope(SupervisorJob())
|
applicationScope = CoroutineScope(SupervisorJob())
|
||||||
applicationScope.launch((Dispatchers.IO)) {
|
applicationScope.launch((Dispatchers.IO)) {
|
||||||
try {
|
try {
|
||||||
|
createNotificationChannels()
|
||||||
|
|
||||||
initLibraries()
|
initLibraries()
|
||||||
val appVer = sharedPreferences.getString("version", "")!!
|
val appVer = sharedPreferences.getString("version", "")!!
|
||||||
if(appVer.isEmpty() || appVer != BuildConfig.VERSION_NAME){
|
if(appVer.isEmpty() || appVer != BuildConfig.VERSION_NAME){
|
||||||
|
|
|
||||||
|
|
@ -453,7 +453,7 @@ class DownloadViewModel(application: Application) : AndroidViewModel(application
|
||||||
val videoFormats = resources.getStringArray(R.array.video_formats_values)
|
val videoFormats = resources.getStringArray(R.array.video_formats_values)
|
||||||
val formats = mutableListOf<Format>()
|
val formats = mutableListOf<Format>()
|
||||||
val containerPreference = sharedPreferences.getString("video_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)) }
|
formatIDPreference.forEach { formats.add(Format(it, containerPreference!!,"Default","", "",1, it)) }
|
||||||
return formats
|
return formats
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -653,7 +653,7 @@ class InfoUtil(private val context: Context) {
|
||||||
urls = urlList.joinToString("\n")
|
urls = urlList.joinToString("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
val url = if (jsonObject.has("url")){
|
val url = if (jsonObject.has("url") && results.size > 1){
|
||||||
jsonObject.getString("url")
|
jsonObject.getString("url")
|
||||||
}else{
|
}else{
|
||||||
if (Patterns.WEB_URL.matcher(query).matches()){
|
if (Patterns.WEB_URL.matcher(query).matches()){
|
||||||
|
|
@ -1201,7 +1201,7 @@ class InfoUtil(private val context: Context) {
|
||||||
|
|
||||||
//format logic
|
//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 usingGenericFormat = false
|
||||||
|
|
||||||
var videof = downloadItem.format.format_id
|
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") {
|
}else if (videof == context.resources.getString(R.string.worst_quality) || videof == "worst") {
|
||||||
videof = "worst"
|
videof = "worst"
|
||||||
}else if (defaultFormats.contains(videof)) {
|
}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()
|
val preferredFormatIDs = sharedPreferences.getString("format_id", "").toString()
|
||||||
|
|
|
||||||
|
|
@ -173,10 +173,9 @@ class NotificationUtil(var context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun createDownloadFinished(title: String?,
|
fun createDownloadFinished(title: String?,
|
||||||
filepath: List<String>?,
|
filepath: List<String>?
|
||||||
channel: String
|
|
||||||
) {
|
) {
|
||||||
val notificationBuilder = getBuilder(channel)
|
val notificationBuilder = getBuilder(DOWNLOAD_FINISHED_CHANNEL_ID)
|
||||||
|
|
||||||
notificationBuilder
|
notificationBuilder
|
||||||
.setContentTitle("${context.getString(R.string.downloaded)} $title")
|
.setContentTitle("${context.getString(R.string.downloaded)} $title")
|
||||||
|
|
|
||||||
|
|
@ -202,8 +202,7 @@ class DownloadWorker(
|
||||||
|
|
||||||
notificationUtil.cancelDownloadNotification(downloadItem.id.toInt())
|
notificationUtil.cancelDownloadNotification(downloadItem.id.toInt())
|
||||||
notificationUtil.createDownloadFinished(
|
notificationUtil.createDownloadFinished(
|
||||||
downloadItem.title, if (finalPaths?.first().equals(context.getString(R.string.unfound_file))) null else finalPaths,
|
downloadItem.title, if (finalPaths?.first().equals(context.getString(R.string.unfound_file))) null else finalPaths
|
||||||
NotificationUtil.DOWNLOAD_FINISHED_CHANNEL_ID
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (wasQuickDownloaded){
|
if (wasQuickDownloaded){
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/format_note"
|
android:id="@+id/format_note"
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
|
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
|
||||||
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
|
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
|
||||||
<item name="snackbarStyle">@style/snackBarStyle</item>
|
<item name="snackbarStyle">@style/snackBarStyle</item>
|
||||||
|
<item name="preferenceTheme">@style/PreferenceTheme</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Red" parent="BaseTheme">
|
<style name="Theme.Red" parent="BaseTheme">
|
||||||
|
|
|
||||||
|
|
@ -275,8 +275,7 @@
|
||||||
<string name="format_order">Renditja e formatit</string>
|
<string name="format_order">Renditja e formatit</string>
|
||||||
<string name="hide_thumbnails">Fshehi Thumbnailet</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="force_keyframes_summary">Proçes më i ngadaltë, por prerje më të sakta</string>
|
||||||
<string name="subtitle_format">Formati i titrave
|
<string name="subtitle_format">Formati i titrave</string>
|
||||||
\n</string>
|
|
||||||
<string name="show_terminal">Shfaq Terminalin në fletën e shpërndarjes</string>
|
<string name="show_terminal">Shfaq Terminalin në fletën e shpërndarjes</string>
|
||||||
<string name="saved">Të ruajtura</string>
|
<string name="saved">Të ruajtura</string>
|
||||||
<string name="clear_saved">Pastro të ruajturat</string>
|
<string name="clear_saved">Pastro të ruajturat</string>
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,11 @@
|
||||||
<string-array name="video_formats_values">
|
<string-array name="video_formats_values">
|
||||||
<item>worst</item>
|
<item>worst</item>
|
||||||
<item>360p</item>
|
<item>360p</item>
|
||||||
<item>480p</item>
|
<item>480p_ytdlnisgeneric</item>
|
||||||
<item>720p</item>
|
<item>720p_ytdlnisgeneric</item>
|
||||||
<item>1080p</item>
|
<item>1080p_ytdlnisgeneric</item>
|
||||||
<item>1440p</item>
|
<item>1440p_ytdlnisgeneric</item>
|
||||||
<item>2160p</item>
|
<item>2160p_ytdlnisgeneric</item>
|
||||||
<item>best</item>
|
<item>best</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@
|
||||||
<string name="use_extra_commands">Add Extra Commands</string>
|
<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="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="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="hide_thumbnails">Hide Thumbnails</string>
|
||||||
<string name="show_terminal">Show Terminal in Share Menu</string>
|
<string name="show_terminal">Show Terminal in Share Menu</string>
|
||||||
<string name="saved">Saved</string>
|
<string name="saved">Saved</string>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
|
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
|
||||||
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
|
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
|
||||||
<item name="snackbarStyle">@style/snackBarStyle</item>
|
<item name="snackbarStyle">@style/snackBarStyle</item>
|
||||||
|
<item name="preferenceTheme">@style/PreferenceTheme</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Red" parent="BaseTheme">
|
<style name="Theme.Red" parent="BaseTheme">
|
||||||
|
|
|
||||||
30
fastlane/metadata/android/en-US/changelogs/10670.txt
Normal file
30
fastlane/metadata/android/en-US/changelogs/10670.txt
Normal 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
|
||||||
Loading…
Reference in a new issue