From: David ‘Bombe’ Roden Date: Sun, 17 Mar 2013 09:57:57 +0000 (+0100) Subject: Don’t change the parsed metadata. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e856fa2e451dbc626a5269fc14d01bca935db39a;p=sonitus.git Don’t change the parsed metadata. --- 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