mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 19:44:43 +01:00
update translations
This commit is contained in:
@@ -57,7 +57,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
|
||||
public BasePluginFolder GetFolder()
|
||||
{
|
||||
var path = Path.Combine(_appPaths.CachePath, "playlists");
|
||||
var path = Path.Combine(_appPaths.DataPath, "playlists");
|
||||
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
|
||||
@@ -76,17 +76,16 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
})
|
||||
.Where(i => i != null)
|
||||
.DistinctBy(i => i.Id)
|
||||
.OrderBy(i => Guid.NewGuid())
|
||||
.ToList();
|
||||
|
||||
// Rotate the images no more than once per day
|
||||
var random = new Random(DateTime.Now.DayOfYear).Next();
|
||||
|
||||
return items
|
||||
.OrderBy(i => random - items.IndexOf(i))
|
||||
.Take(4)
|
||||
.OrderBy(i => i.Name)
|
||||
.ToList();
|
||||
|
||||
if (items.Count == 0)
|
||||
{
|
||||
return new List<BaseItem>();
|
||||
}
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
private const string Version = "3";
|
||||
|
||||
Reference in New Issue
Block a user