Skip to content

Commit

Permalink
Release v1.7.0-beta.2 (10610)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Dec 2, 2022
1 parent d916768 commit 04a419c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ plugins {
apply(plugin = "dagger.hilt.android.plugin")

val versionMajor = 1
val versionMinor = 6
val versionPatch = 1
val versionBuild = 0
val isStable = true
val versionMinor = 7
val versionPatch = 0
val versionBuild = 2
val isStable = false

val keystorePropertiesFile = rootProject.file("keystore.properties")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class DownloadViewModel @Inject constructor() : ViewModel() {
progress = 0f,
taskId = videoInfo.id,
title = videoInfo.title,
uploader = videoInfo.uploader ?: "null",
uploader = videoInfo.uploader.toString(),
thumbnailUrl = videoInfo.thumbnail.toHttpsUrl(),
duration = videoInfo.duration?.roundToInt() ?: 0,
fileSizeApprox = videoInfo.fileSize ?: videoInfo.fileSizeApprox ?: 0
Expand Down
11 changes: 6 additions & 5 deletions app/src/main/java/com/junkfood/seal/util/DownloadUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ object DownloadUtil {
id = 0,
videoTitle = videoInfo.title,
videoAuthor = videoInfo.uploader ?: videoInfo.channel.toString(),
videoUrl = videoInfo.webpageUrl ?: videoInfo.originalUrl ?: "null",
videoUrl = videoInfo.webpageUrl ?: videoInfo.originalUrl.toString(),
thumbnailUrl = videoInfo.thumbnail.toHttpsUrl(),
videoPath = path,
extractor = videoInfo.extractorKey
Expand Down Expand Up @@ -381,12 +381,13 @@ object DownloadUtil {
)
}
}.onFailure {
if (it.message.isNullOrEmpty())
val msg = it.message
if (msg.isNullOrEmpty())
it.printStackTrace()
else NotificationUtil.makeErrorReportNotificationForCustomCommand(
notificationId,
null,
it.message!!
notificationId = notificationId,
text = null,
error = msg
)
}.onSuccess {
NotificationUtil.makeNotification(
Expand Down

0 comments on commit 04a419c

Please sign in to comment.