mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update live tv cache location
This commit is contained in:
parent
b6f019b7f2
commit
9babddb271
@ -67,6 +67,8 @@ namespace MediaBrowser.Model.Dto
|
|||||||
public bool? CanDelete { get; set; }
|
public bool? CanDelete { get; set; }
|
||||||
public bool? CanDownload { get; set; }
|
public bool? CanDownload { get; set; }
|
||||||
|
|
||||||
|
public bool? HasSubtitles { get; set; }
|
||||||
|
|
||||||
public string PreferredMetadataLanguage { get; set; }
|
public string PreferredMetadataLanguage { get; set; }
|
||||||
public string PreferredMetadataCountryCode { get; set; }
|
public string PreferredMetadataCountryCode { get; set; }
|
||||||
|
|
||||||
|
@ -1310,6 +1310,11 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||||||
dto.Video3DFormat = video.Video3DFormat;
|
dto.Video3DFormat = video.Video3DFormat;
|
||||||
dto.IsoType = video.IsoType;
|
dto.IsoType = video.IsoType;
|
||||||
|
|
||||||
|
if (video.HasSubtitles)
|
||||||
|
{
|
||||||
|
dto.HasSubtitles = video.HasSubtitles;
|
||||||
|
}
|
||||||
|
|
||||||
if (video.AdditionalParts.Count != 0)
|
if (video.AdditionalParts.Count != 0)
|
||||||
{
|
{
|
||||||
dto.PartCount = video.AdditionalParts.Count + 1;
|
dto.PartCount = video.AdditionalParts.Count + 1;
|
||||||
|
@ -882,7 +882,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|||||||
|
|
||||||
private string GetChannelEpgCachePath(string channelId)
|
private string GetChannelEpgCachePath(string channelId)
|
||||||
{
|
{
|
||||||
return Path.Combine(DataPath, "epg", channelId + ".json");
|
return Path.Combine(_config.CommonApplicationPaths.CachePath, "embytvepg", channelId + ".json");
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly object _epgLock = new object();
|
private readonly object _epgLock = new object();
|
||||||
|
@ -94,6 +94,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||||||
|
|
||||||
if (station == null)
|
if (station == null)
|
||||||
{
|
{
|
||||||
|
_logger.Info("No Schedules Direct Station found for channel {0} with name {1}", channelNumber, channelName);
|
||||||
return programsInfo;
|
return programsInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +250,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||||||
|
|
||||||
foreach (ChannelInfo channel in channels)
|
foreach (ChannelInfo channel in channels)
|
||||||
{
|
{
|
||||||
var station = GetStation(channel.Number, channel.Number);
|
var station = GetStation(channel.Number, channel.Name);
|
||||||
|
|
||||||
if (station != null)
|
if (station != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user