From e283ac46a8618da39c9de59aeb22d2061e66b927 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 6 Jun 2019 02:14:10 +0200 Subject: [PATCH] Fix downloads with embedded covers Previously, this would always fail with embedded covers. --- .../java/org/airsonic/player/controller/DownloadController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/DownloadController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/DownloadController.java index ef949ca6..c8eba507 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/DownloadController.java +++ b/airsonic-main/src/main/java/org/airsonic/player/controller/DownloadController.java @@ -235,7 +235,7 @@ public class DownloadController implements LastModified { for (MediaFile mediaFile : filesToDownload) { zip(out, mediaFile.getParentFile(), mediaFile.getFile(), status, range); if (coverArtFile != null && coverArtFile.exists()) { - if (mediaFile.getFile().getCanonicalPath() == coverArtFile.getCanonicalPath()) { + if (mediaFile.getFile().getCanonicalPath().equals(coverArtFile.getCanonicalPath())) { cover_embedded = true; } }