Skip to content

Commit

Permalink
feat(update): revert disable yt-dlp auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Apr 5, 2024
1 parent c201162 commit 90db75f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Under development, please stay tuned!
### Changed
* Long pressing on an item in download history now selects it
* Use nightly builds for yt-dlp by default
* Auto update of yt-dlp is now disabled by default
* Migrate `Slider` & `ProgressIndicator` to the new visual styles in MD3
* Use default display name from system for locales
* Metadata of videos is also embedded in the files now
Expand Down
5 changes: 1 addition & 4 deletions app/src/main/java/com/junkfood/seal/ui/page/HomeEntry.kt
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ fun HomeEntry(

runCatching {
withContext(Dispatchers.IO) {
val res = UpdateUtil.updateYtDlp()
if (res == YoutubeDL.UpdateStatus.DONE) {
ToastUtil.makeToastSuspend(context.getString(R.string.yt_dlp_up_to_date) + " (${YT_DLP_VERSION.getString()})")
}
UpdateUtil.updateYtDlp()
}
}.onFailure {
it.printStackTrace()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fun GeneralDownloadPreferences(
th.printStackTrace()
ToastUtil.makeToastSuspend(App.context.getString(R.string.yt_dlp_update_fail))
}.onSuccess {
ToastUtil.makeToastSuspend(context.getString(R.string.yt_dlp_up_to_date))
ToastUtil.makeToastSuspend(context.getString(R.string.yt_dlp_up_to_date) + " (${YT_DLP_VERSION.getString()})")
}
isUpdating = false
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/junkfood/seal/util/PreferenceUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private val BooleanPreferenceDefaults = mapOf(
FORMAT_SELECTION to true,
CONFIGURE to true,
CELLULAR_DOWNLOAD to false,
YT_DLP_AUTO_UPDATE to false,
YT_DLP_AUTO_UPDATE to true,
NOTIFICATION to true,
EMBED_METADATA to true,
)
Expand Down

0 comments on commit 90db75f

Please sign in to comment.