implement direct play profile edit

This commit is contained in:
Luke Pulverenti
2014-03-28 22:28:02 -04:00
parent 5e5b1f180c
commit 1aa7eb4c62
4 changed files with 21 additions and 3 deletions

View File

@@ -1297,7 +1297,7 @@ namespace MediaBrowser.Server.Implementations.Dto
{
var result = new List<MediaSourceInfo>
{
GetVersionInfo(item, true)
GetVersionInfo(item)
};
return result;
@@ -1321,7 +1321,7 @@ namespace MediaBrowser.Server.Implementations.Dto
};
}
private MediaSourceInfo GetVersionInfo(Audio i, bool isPrimary)
private MediaSourceInfo GetVersionInfo(Audio i)
{
return new MediaSourceInfo
{

View File

@@ -134,6 +134,14 @@ namespace MediaBrowser.Server.Implementations.LiveTv
return number;
});
if (query.IsFavorite.HasValue)
{
var val = query.IsFavorite.Value;
channels = channels
.Where(i => _userDataManager.GetUserData(user.Id, i.GetUserDataKey()).IsFavorite == val);
}
}
channels = channels.OrderBy(i =>