소스 검색

feat: Allow to disable download methods

Kroese 16 시간 전
부모
커밋
e2c0a40e13
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/define.sh

+ 4 - 0
src/define.sh

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