aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-05 21:09:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-05 21:09:03 -0400
commit3ff3d04284429d78ec8adc2292de79ef0c022449 (patch)
tree26b5daf7dc3699e4ab9bd41d416195fdbf9f869b /MediaBrowser.Server.Implementations
parent3ba6364f259ea43979a88b2a83d64292119057dc (diff)
fixes #888 - Support m3u8 subtitle playlists
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs24
1 files changed, 14 insertions, 10 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 8ffe8aa63..ad2b50365 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -550,24 +550,28 @@ namespace MediaBrowser.Server.Implementations.LiveTv
};
}
- if (!string.IsNullOrEmpty(info.Path))
- {
- item.Path = info.Path;
- }
- else if (!string.IsNullOrEmpty(info.Url))
- {
- item.Path = info.Url;
- }
-
isNew = true;
}
item.RecordingInfo = info;
item.ServiceName = serviceName;
+ var originalPath = item.Path;
+
+ if (!string.IsNullOrEmpty(info.Path))
+ {
+ item.Path = info.Path;
+ }
+ else if (!string.IsNullOrEmpty(info.Url))
+ {
+ item.Path = info.Url;
+ }
+
+ var pathChanged = !string.Equals(originalPath, item.Path);
+
await item.RefreshMetadata(new MetadataRefreshOptions
{
- ForceSave = isNew
+ ForceSave = isNew || pathChanged
}, cancellationToken);