feat: Allow to disable download methods

This commit is contained in:
Kroese 2025-09-14 09:09:45 +02:00 committed by GitHub
parent 0bee329b7b
commit e2c0a40e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1313,6 +1313,8 @@ isMido() {
local lang="$2" local lang="$2"
local sum local sum
[[ "${MIDO:-}" != [Yy1]* ]] && return 1
sum=$(getMido "$id" "en" "sum") sum=$(getMido "$id" "en" "sum")
[ -n "$sum" ] && return 0 [ -n "$sum" ] && return 0
@ -1324,6 +1326,8 @@ isESD() {
local id="$1" local id="$1"
local lang="$2" local lang="$2"
[[ "${ESD:-}" != [Yy1]* ]] && return 1
case "${id,,}" in case "${id,,}" in
"win11${PLATFORM,,}" | "win10${PLATFORM,,}" ) "win11${PLATFORM,,}" | "win10${PLATFORM,,}" )
return 0 return 0