mirror of
https://github.com/yattee/yattee.git
synced 2026-01-01 17:32:31 +00:00
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:
@@ -612,6 +612,9 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
|
|||||||
// Some instances are not configured properly and return thumbnail links
|
// Some instances are not configured properly and return thumbnail links
|
||||||
// with an incorrect scheme or a missing port.
|
// with an incorrect scheme or a missing port.
|
||||||
components.scheme = accountUrlComponents.scheme
|
components.scheme = accountUrlComponents.scheme
|
||||||
|
if (components.host ?? "") == "" {
|
||||||
|
components.host = accountUrlComponents.host
|
||||||
|
}
|
||||||
components.port = accountUrlComponents.port
|
components.port = accountUrlComponents.port
|
||||||
|
|
||||||
// If basic HTTP authentication is used,
|
// If basic HTTP authentication is used,
|
||||||
|
|||||||
Reference in New Issue
Block a user