mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
added chromecast boilerplate
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user