Skip to content

Commit

Permalink
fix: artwork not saved in tags
Browse files Browse the repository at this point in the history
Fixes #88
  • Loading branch information
Otiel committed May 13, 2019
1 parent aa577f3 commit f37a111
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/BandcampDownloader/Core/DownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ private async Task<bool> DownloadAndTagTrackAsync(Album album, Track track, TagL
settings.MaxWidth = App.UserSettings.CoverArtInFolderMaxSize;
}

await Task.Run(() => {
ImageBuilder.Current.Build(album.ArtworkTempPath, album.ArtworkPath, settings); // Save it to the album folder
});
ImageBuilder.Current.Build(album.ArtworkTempPath, album.ArtworkPath, settings); // Save it to the album folder
} else if (App.UserSettings.SaveCoverArtInFolder) {
File.Copy(album.ArtworkTempPath, album.ArtworkPath, true);
}
Expand All @@ -288,9 +286,7 @@ await Task.Run(() => {
settings.MaxWidth = App.UserSettings.CoverArtInTagsMaxSize;
}

await Task.Run(() => {
ImageBuilder.Current.Build(album.ArtworkTempPath, album.ArtworkTempPath, settings); // Save it to %Temp%
});
ImageBuilder.Current.Build(album.ArtworkTempPath, album.ArtworkTempPath, settings); // Save it to %Temp%
}
artworkInTags = new TagLib.Picture(album.ArtworkTempPath) {
Description = "Picture"
Expand Down

0 comments on commit f37a111

Please sign in to comment.