mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Use config.domain in place of hardcoded value
This commit is contained in:
parent
9580a21786
commit
20c4d213d9
4 changed files with 20 additions and 15 deletions
|
@ -15,7 +15,10 @@ class Config
|
|||
https_only: Bool?,
|
||||
hmac_key: String?,
|
||||
full_refresh: Bool,
|
||||
domain: String?,
|
||||
domain: {
|
||||
type: String?,
|
||||
default: "invidio.us",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -205,8 +205,6 @@ def make_host_url(ssl, host)
|
|||
scheme = "http://"
|
||||
end
|
||||
|
||||
host ||= "invidio.us"
|
||||
|
||||
return "#{scheme}#{host}"
|
||||
end
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ BYPASS_REGIONS = {
|
|||
}
|
||||
|
||||
VIDEO_THUMBNAILS = {
|
||||
{name: "maxres", host: "invidio.us", url: "maxres", height: 720, width: 1280},
|
||||
{name: "maxres", host: "#{CONFIG.domain}", url: "maxres", height: 720, width: 1280},
|
||||
{name: "maxresdefault", host: "i.ytimg.com", url: "maxresdefault", height: 720, width: 1280},
|
||||
{name: "sddefault", host: "i.ytimg.com", url: "sddefault", height: 480, width: 640},
|
||||
{name: "high", host: "i.ytimg.com", url: "hqdefault", height: 360, width: 480},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue