1
0
mirror of https://github.com/iv-org/invidious.git synced 2025-03-16 10:56:00 -04:00

Add option to disable DRM decryption

This commit is contained in:
Omar Roth 2018-11-30 18:07:46 -06:00
parent 65a5f6a6c3
commit 818147bd42
2 changed files with 9 additions and 3 deletions
src
invidious.cr
invidious/helpers

@ -78,10 +78,12 @@ REDDIT_URL = URI.parse("https://www.reddit.com")
LOGIN_URL = URI.parse("https://accounts.google.com")
decrypt_function = [] of {name: String, value: Int32}
spawn do
if CONFIG.decrypt_drm
spawn do
update_decrypt_function do |function|
decrypt_function = function
end
end
end
proxies = PROXY_LIST

@ -16,6 +16,10 @@ class Config
hmac_key: String?,
full_refresh: Bool,
domain: String?,
decrypt_drm: {
type: Bool?,
default: true,
},
})
end