Merge pull request #904 from telyn/support-invidious-empty-domain

Support Invidious servers which have unspecified domains (... at least for thumbnail URLs 🙂)
This commit is contained in:
Arkadiusz Fal
2025-12-22 23:07:29 +01:00
committed by GitHub

View File

@@ -612,6 +612,9 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
// Some instances are not configured properly and return thumbnail links
// with an incorrect scheme or a missing port.
components.scheme = accountUrlComponents.scheme
if (components.host ?? "") == "" {
components.host = accountUrlComponents.host
}
components.port = accountUrlComponents.port
// If basic HTTP authentication is used,