Exclude .strm files when searching for external audio files

This commit is contained in:
Jonas Resch 2021-12-08 10:18:09 +01:00
parent d47811bdaf
commit 4cdb590291

View File

@ -131,7 +131,7 @@ namespace MediaBrowser.Providers.MediaInfo
for (int i = 0; i < files.Count; i++)
{
string file = files[i];
if (string.Equals(video.Path, file, StringComparison.OrdinalIgnoreCase) || !AudioFileParser.IsAudioFile(file, _namingOptions))
if (string.Equals(video.Path, file, StringComparison.OrdinalIgnoreCase) || !AudioFileParser.IsAudioFile(file, _namingOptions) || Path.GetExtension(file).Equals(".strm", StringComparison.OrdinalIgnoreCase))
{
continue;
}