Skip to content

Commit

Permalink
Hotfix: custom template broken
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Aug 11, 2022
1 parent de5a6b2 commit 0bd6c1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,8 @@ class DownloadViewModel @Inject constructor() : ViewModel() {
} else {
commands.add(m.group(2).toString())
}
request.addCommands(commands)
}
for (command in request.buildCommand())
Log.d(TAG, command)
request.addCommands(commands)
YoutubeDL.getInstance().execute(request) { progress, _, line ->
mutableStateFlow.update { it.copy(progress = progress, progressText = line) }
NotificationUtil.updateNotification(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ fun DownloadPreferences(
PreferenceSwitch(
title = stringResource(R.string.print_details),
description = stringResource(R.string.print_details_desc),
enabled = !customCommandEnable,
icon = if (displayErrorReport) Icons.Outlined.Print else Icons.Outlined.PrintDisabled,
onClick = {
displayErrorReport = !displayErrorReport
Expand Down

0 comments on commit 0bd6c1e

Please sign in to comment.