added chromecast boilerplate

This commit is contained in:
Luke Pulverenti
2014-02-23 00:52:30 -05:00
parent 2d0ce724ea
commit 2d27b10d11
12 changed files with 106 additions and 120 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Entities;
using System;
using System.Globalization;
using System.Linq;
@@ -58,7 +59,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
name = RemoveDiacritics(name);
name = " " + name.ToLower() + " ";
name = " " + name + " ";
name = name.Replace(".", " ")
.Replace("_", " ")
@@ -68,8 +69,8 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
.Replace(")", " ")
.Replace(",", " ")
.Replace("-", " ")
.Replace(" a ", String.Empty)
.Replace(" the ", String.Empty)
.Replace(" a ", String.Empty, StringComparison.OrdinalIgnoreCase)
.Replace(" the ", String.Empty, StringComparison.OrdinalIgnoreCase)
.Replace(" ", String.Empty);
return name.Trim();

View File

@@ -251,6 +251,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
if (user != null)
{
dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, recording.GetUserDataKey()));
dto.PlayAccess = recording.GetPlayAccess(user);
}
if (!string.IsNullOrEmpty(info.ProgramId))
@@ -321,6 +323,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
if (user != null)
{
dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, info.GetUserDataKey()));
dto.PlayAccess = info.GetPlayAccess(user);
}
var imageTag = GetImageTag(info);
@@ -394,6 +398,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
if (user != null)
{
dto.UserData = _dtoService.GetUserItemDataDto(_userDataManager.GetUserData(user.Id, item.GetUserDataKey()));
dto.PlayAccess = item.GetPlayAccess(user);
}
return dto;