Modify External Subtitle URL Logic

This commit is contained in:
PangMo5 2022-06-14 22:15:33 +09:00
parent 1d96cd836e
commit 9508c5f113
1 changed files with 1 additions and 5 deletions

View File

@ -10,12 +10,8 @@ import Foundation
import JellyfinAPI
extension MediaStream {
func externalURL(base: String) -> URL? {
guard let deliveryURL = deliveryUrl else { return nil }
var baseComponents = URLComponents(string: base)
baseComponents?.path += deliveryURL
return baseComponents?.url
return URL(string: base + deliveryURL)
}
}