diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-07-29 00:13:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 00:13:40 +0200 |
| commit | 095d4d4d15825e948c4894361487c7dced0ca03f (patch) | |
| tree | 981a8a883e346cc67d0b7871d4118e28796c945e /src | |
| parent | 162ea38a95560f19e0a2df8a54c1ac117d6d91bc (diff) | |
| parent | ecd2dab0a2550c80ae054576d9c05ddb24d5e47b (diff) | |
Merge pull request #12295 from Bond-009/trysetproviderid
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)) |
