Skip to content

Commit

Permalink
Update source/utils/misc.brs
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Ewert <[email protected]>
  • Loading branch information
sevenrats and cewert authored Sep 14, 2023
1 parent 6b16ed9 commit d4483a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/utils/misc.brs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,8 @@ function inferServerUrl(url as string) as string
' TODO
' if response code is a 300 redirect then we should return the redirect url
' Make sure this happens or make it happen
if resp.GetResponseCode() = 200
if resp.GetResponseCode() = 200 and isJellyfinServer(resp.GetString())
selectedUrl = hosts.lookup(resp.GetSourceIdentity().ToStr())
isJellyfinServer(resp.GetString())
print "Successfully inferred server URL: " selectedUrl
return selectedUrl
end if
Expand Down

0 comments on commit d4483a2

Please sign in to comment.