diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-07-17 20:54:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-17 20:54:07 +0200 |
| commit | ea7c7ea48c49750c182bf1f2c9a2496c5297aa8f (patch) | |
| tree | 268b54678e60abc28f89cc1c570cd0473ec8363f | |
| parent | 0e8537a6a56d5085ab2fedf0c435bd770e336657 (diff) | |
| parent | 0ad62e7af93934ef0695891bd6a6adda67feb6ff (diff) | |
Merge pull request #5864 from DeeJayBro/return-on-error
Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo
| -rw-r--r-- | Jellyfin.Api/Controllers/MediaInfoController.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs index e7a7a6add..8903e0ce8 100644 --- a/Jellyfin.Api/Controllers/MediaInfoController.cs +++ b/Jellyfin.Api/Controllers/MediaInfoController.cs @@ -161,6 +161,11 @@ namespace Jellyfin.Api.Controllers liveStreamId) .ConfigureAwait(false); + if (info.ErrorCode != null) + { + return info; + } + if (profile != null) { // set device specific data |
