diff options
| author | Bond_009 <bond.009@outlook.com> | 2024-07-17 15:48:21 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2024-07-17 15:48:21 +0200 |
| commit | ecd2dab0a2550c80ae054576d9c05ddb24d5e47b (patch) | |
| tree | 48d80691cd1287c58722fb1e7aea9e02b4ba410f /src | |
| parent | 78ed8f660c1acf216cc0133bc709acf09f7a411e (diff) | |
Add TrySetProviderId extension
Diffstat (limited to 'src')
| -rw-r--r-- | src/Jellyfin.LiveTv/Guide/GuideManager.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs index 093970c38..f657422a0 100644 --- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs +++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs @@ -479,10 +479,7 @@ public class GuideManager : IGuideManager DateModified = DateTime.UtcNow }; - if (!string.IsNullOrEmpty(info.Etag)) - { - item.SetProviderId(EtagKey, info.Etag); - } + item.TrySetProviderId(EtagKey, info.Etag); } if (!string.Equals(info.ShowId, item.ShowId, StringComparison.OrdinalIgnoreCase)) |
