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

View File

@ -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

View File

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