mirror of
https://github.com/yattee/yattee.git
synced 2025-12-25 14:10:14 +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
|
||||
// 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,
|
||||
|
||||
Reference in New Issue
Block a user