Browse Source

Merge pull request #5864 from DeeJayBro/return-on-error

Fix ArgumentOutOfRangeException when getting PostedPlaybackInfo
Bond-009 3 years ago
parent
commit
ea7c7ea48c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Jellyfin.Api/Controllers/MediaInfoController.cs

+ 5 - 0
Jellyfin.Api/Controllers/MediaInfoController.cs

@@ -161,6 +161,11 @@ namespace Jellyfin.Api.Controllers
                     liveStreamId)
                     liveStreamId)
                 .ConfigureAwait(false);
                 .ConfigureAwait(false);
 
 
+            if (info.ErrorCode != null)
+            {
+                return info;
+            }
+
             if (profile != null)
             if (profile != null)
             {
             {
                 // set device specific data
                 // set device specific data