mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
update intros
This commit is contained in:
parent
30f30ae9f3
commit
f0864b1dae
1 changed files with 6 additions and 3 deletions
|
@ -216,7 +216,8 @@ namespace MediaBrowser.Server.Implementations.Intros
|
||||||
}
|
}
|
||||||
|
|
||||||
return allIntros
|
return allIntros
|
||||||
.Where(i => IsMatch(i.Path, codec));
|
.Where(i => IsMatch(i.Path, codec))
|
||||||
|
.OrderBy(i => Guid.NewGuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<IntroInfo> GetMediaInfoIntrosByAudioStream(List<IntroInfo> allIntros, MediaStream stream)
|
private IEnumerable<IntroInfo> GetMediaInfoIntrosByAudioStream(List<IntroInfo> allIntros, MediaStream stream)
|
||||||
|
@ -229,13 +230,15 @@ namespace MediaBrowser.Server.Implementations.Intros
|
||||||
}
|
}
|
||||||
|
|
||||||
return allIntros
|
return allIntros
|
||||||
.Where(i => IsAudioMatch(i.Path, stream));
|
.Where(i => IsAudioMatch(i.Path, stream))
|
||||||
|
.OrderBy(i => Guid.NewGuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<IntroInfo> GetMediaInfoIntrosByTags(List<IntroInfo> allIntros, List<string> tags)
|
private IEnumerable<IntroInfo> GetMediaInfoIntrosByTags(List<IntroInfo> allIntros, List<string> tags)
|
||||||
{
|
{
|
||||||
return allIntros
|
return allIntros
|
||||||
.Where(i => tags.Any(t => IsMatch(i.Path, t)));
|
.Where(i => tags.Any(t => IsMatch(i.Path, t)))
|
||||||
|
.OrderBy(i => Guid.NewGuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsMatch(string file, string attribute)
|
private bool IsMatch(string file, string attribute)
|
||||||
|
|
Loading…
Reference in a new issue