Skip to content

Commit

Permalink
Throw when tags cannot be injected
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Sep 18, 2024
1 parent 0b30001 commit f83c16f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions YoutubeDownloader/ViewModels/Components/DashboardViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,12 @@ await downloader.DownloadVideoAsync(

if (_settingsService.ShouldInjectTags)
{
try
{
await tagInjector.InjectTagsAsync(
download.FilePath!,
download.Video!,
download.CancellationToken
);
}
catch
{
// Media tagging is not critical
}

await tagInjector.InjectTagsAsync(
download.FilePath!,
download.Video!,
download.CancellationToken
);
}

download.Status = DownloadStatus.Completed;
Expand Down

0 comments on commit f83c16f

Please sign in to comment.