aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-08 12:13:58 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-08 12:13:58 -0400
commitadc22b5e811ff1d570946a65b94930c1c338c7d3 (patch)
treea36814db6b9c099fc5ead90d9a8967c0ef6d6c38 /Emby.Server.Implementations/LiveTv/LiveTvManager.cs
parent33e31d246f124581fdd112bc2973c85ca1c68d07 (diff)
rework epg storage
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/LiveTvManager.cs')
-rw-r--r--Emby.Server.Implementations/LiveTv/LiveTvManager.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
index b243c6599..dc212492e 100644
--- a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -99,7 +99,7 @@ namespace Emby.Server.Implementations.LiveTv
_dtoService = dtoService;
_userDataManager = userDataManager;
- _tvDtoService = new LiveTvDtoService(dtoService, userDataManager, imageProcessor, logger, appHost, _libraryManager);
+ _tvDtoService = new LiveTvDtoService(dtoService, imageProcessor, logger, appHost, _libraryManager);
}
/// <summary>
@@ -600,6 +600,12 @@ namespace Emby.Server.Implementations.LiveTv
};
}
+ if (!string.Equals(info.ShowId, item.ShowId, StringComparison.OrdinalIgnoreCase))
+ {
+ item.ShowId = info.ShowId;
+ forceUpdate = true;
+ }
+
var seriesId = info.SeriesId;
if (!item.ParentId.Equals(channel.Id))
@@ -3143,5 +3149,15 @@ namespace Emby.Server.Implementations.LiveTv
var provider = _listingProviders.First(i => string.Equals(i.Type, info.Type, StringComparison.OrdinalIgnoreCase));
return provider.GetChannels(info, cancellationToken);
}
+
+ public Guid GetInternalChannelId(string serviceName, string externalId)
+ {
+ return _tvDtoService.GetInternalChannelId(serviceName, externalId);
+ }
+
+ public Guid GetInternalProgramId(string serviceName, string externalId)
+ {
+ return _tvDtoService.GetInternalProgramId(serviceName, externalId);
+ }
}
} \ No newline at end of file