mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-15 10:26:36 -04:00
Add option to disable DRM decryption
This commit is contained in:
parent
65a5f6a6c3
commit
818147bd42
@ -78,9 +78,11 @@ 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
|
||||
update_decrypt_function do |function|
|
||||
decrypt_function = function
|
||||
if CONFIG.decrypt_drm
|
||||
spawn do
|
||||
update_decrypt_function do |function|
|
||||
decrypt_function = function
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -16,6 +16,10 @@ class Config
|
||||
hmac_key: String?,
|
||||
full_refresh: Bool,
|
||||
domain: String?,
|
||||
decrypt_drm: {
|
||||
type: Bool?,
|
||||
default: true,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user