Fix downloads with embedded covers

Previously, this would always fail with
embedded covers.
This commit is contained in:
jvoisin
2019-06-06 02:14:10 +02:00
parent 4f59c72bbe
commit e283ac46a8
@@ -235,7 +235,7 @@ public class DownloadController implements LastModified {
for (MediaFile mediaFile : filesToDownload) { for (MediaFile mediaFile : filesToDownload) {
zip(out, mediaFile.getParentFile(), mediaFile.getFile(), status, range); zip(out, mediaFile.getParentFile(), mediaFile.getFile(), status, range);
if (coverArtFile != null && coverArtFile.exists()) { if (coverArtFile != null && coverArtFile.exists()) {
if (mediaFile.getFile().getCanonicalPath() == coverArtFile.getCanonicalPath()) { if (mediaFile.getFile().getCanonicalPath().equals(coverArtFile.getCanonicalPath())) {
cover_embedded = true; cover_embedded = true;
} }
} }