Prevent parsing for Roksbox metadata detection if not a matching extension

pull/4516/head
Qstick 11 months ago
parent 76b6359732
commit a3504b5e32

@ -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;

Loading…
Cancel
Save