From e856fa2e451dbc626a5269fc14d01bca935db39a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 17 Mar 2013 10:57:57 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20change=20the=20parsed=20metadata?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sonitus/data/source/FileSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sonitus/data/source/FileSource.java b/src/main/java/net/pterodactylus/sonitus/data/source/FileSource.java index 6c28522..010eeb9 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/source/FileSource.java +++ b/src/main/java/net/pterodactylus/sonitus/data/source/FileSource.java @@ -69,7 +69,7 @@ public class FileSource implements Source { metadata = identifyingInputStream.get().metadata(); } else { /* fallback. */ - metadata = new Metadata(UNKNOWN_CHANNELS, UNKNOWN_FREQUENCY, UNKNOWN_ENCODING); + metadata = new Metadata(UNKNOWN_CHANNELS, UNKNOWN_FREQUENCY, UNKNOWN_ENCODING).name(path); } } @@ -79,7 +79,7 @@ public class FileSource implements Source { @Override public Metadata metadata() { - return metadata.name(path); + return metadata; } @Override -- 2.7.4