From f4fe73486d9601640a3021ee8fcb259dad3e7f7d Mon Sep 17 00:00:00 2001 From: projectdx Date: Thu, 7 Apr 2022 00:11:44 +0900 Subject: [PATCH] anime-downloader bug fix 12. --- templates/anime_downloader_ohli24_request.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/anime_downloader_ohli24_request.html b/templates/anime_downloader_ohli24_request.html index b6485b7..7cb46cb 100644 --- a/templates/anime_downloader_ohli24_request.html +++ b/templates/anime_downloader_ohli24_request.html @@ -29,8 +29,12 @@ {#document.getElementById("analysis_btn").click();#} } - if ( "{{arg['ohli24_current_code']}}" !== "" ) { - document.getElementById("code").value = "{{arg['ohli24_current_code']}}"; + if ( "{{arg['ohli24_current_code']}}" !== "") { + if (params.code === null && params.code === '') { + document.getElementById("code").value = "{{arg['ohli24_current_code']}}"; + } else { + document.getElementById("code").value = params.code + } // 값이 공백이 아니면 분석 버튼 계속 누름 {#document.getElementById("analysis_btn").click();#} }