Fix transcodingURL (#760)

This commit is contained in:
holow29 2023-05-07 00:41:47 -04:00 committed by GitHub
parent 2a51598004
commit 37911723a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ extension MediaSourceInfo {
let streamType: StreamType
if let transcodingURL, !Defaults[.Experimental.forceDirectPlay] {
guard let fullTranscodeURL = URL(string: "".appending(transcodingURL))
guard let fullTranscodeURL = URL(string: transcodingURL, relativeTo: userSession.server.currentURL)
else { throw JellyfinAPIError("Unable to construct transcoded url") }
playbackURL = fullTranscodeURL
streamType = .transcode