update translations

This commit is contained in:
Luke Pulverenti
2014-08-14 09:24:30 -04:00
parent 02e25b4855
commit 9c5cceb4ec
124 changed files with 1569 additions and 534 deletions

View File

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

View File

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