diff --git a/src/NzbDrone.Core/Extras/Metadata/Consumers/Roksbox/RoksboxMetadata.cs b/src/NzbDrone.Core/Extras/Metadata/Consumers/Roksbox/RoksboxMetadata.cs index 0ef36d545..b7ed855f8 100644 --- a/src/NzbDrone.Core/Extras/Metadata/Consumers/Roksbox/RoksboxMetadata.cs +++ b/src/NzbDrone.Core/Extras/Metadata/Consumers/Roksbox/RoksboxMetadata.cs @@ -91,13 +91,11 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox return metadata; } - var parseResult = Parser.Parser.ParseMusicTitle(filename); - - if (parseResult != null) + if (Path.GetExtension(filename).ToLowerInvariant() == ".xml") { - var extension = Path.GetExtension(filename).ToLowerInvariant(); + var parseResult = Parser.Parser.ParseMusicTitle(filename); - if (extension == ".xml") + if (parseResult != null) { metadata.Type = MetadataType.TrackMetadata; return metadata;