mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-29 08:48:30 +00: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")
|
LOGIN_URL = URI.parse("https://accounts.google.com")
|
||||||
|
|
||||||
decrypt_function = [] of {name: String, value: Int32}
|
decrypt_function = [] of {name: String, value: Int32}
|
||||||
spawn do
|
if CONFIG.decrypt_drm
|
||||||
update_decrypt_function do |function|
|
spawn do
|
||||||
decrypt_function = function
|
update_decrypt_function do |function|
|
||||||
|
decrypt_function = function
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@ class Config
|
|||||||
hmac_key: String?,
|
hmac_key: String?,
|
||||||
full_refresh: Bool,
|
full_refresh: Bool,
|
||||||
domain: String?,
|
domain: String?,
|
||||||
|
decrypt_drm: {
|
||||||
|
type: Bool?,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user