{% extends "base.html" %} {% import "macro.html" as macros %} {% block content %}
{{ macros.m_row_start('5') }} {{ macros.m_row_end() }}

GDM 설정

{{ macros.m_button_group([['globalSettingSaveBtn', '설정 저장']]) }}
{{ macros.m_hr_head_bottom() }}
{{ macros.setting_top_big('기본 설정') }} {{ macros.setting_bottom() }} {{ macros.setting_input_text('save_path', '저장 경로', value=arg['save_path'], desc='{PATH_DATA}는 실제 데이터 경로로 치환됩니다.') }} {{ macros.setting_input_text('temp_path', '임시 경로', value=arg['temp_path'], desc='다운로드 중 임시 파일 저장 경로') }} {{ macros.setting_input_text('max_concurrent', '동시 다운로드 수', value=arg['max_concurrent'], desc='동시에 진행할 최대 다운로드 수') }} {{ macros.setting_select('max_download_rate', '속도 제한', [['0', '무제한'], ['1M', '1 MB/s'], ['3M', '3 MB/s'], ['5M', '5 MB/s'], ['10M', '10 MB/s']], value=arg['max_download_rate'], desc='다운로드 속도를 제한합니다.') }} {{ macros.m_hr() }} {{ macros.setting_top_big('다운로더 설정') }} {{ macros.setting_bottom() }} {{ macros.setting_input_text('aria2c_path', 'aria2c 경로', value=arg['aria2c_path'], desc='aria2c 실행 파일 경로 (고속 다운로드용)') }} {{ macros.setting_input_text('aria2c_connections', 'aria2c 연결 수', value=arg['aria2c_connections'], desc='aria2c 동시 연결 수 (기본 16)') }} {{ macros.setting_input_text('ffmpeg_path', 'ffmpeg 경로', value=arg['ffmpeg_path'], desc='ffmpeg 실행 파일 경로 (HLS 스트림용)') }} {{ macros.setting_input_text('yt_dlp_path', 'yt-dlp 경로', value=arg['yt_dlp_path'], desc='비워두면 Python 모듈 사용') }} {{ macros.m_hr() }} {{ macros.setting_top_big('재시도 설정') }} {{ macros.setting_bottom() }} {{ macros.setting_checkbox('auto_retry', '자동 재시도', value=arg['auto_retry'], desc='다운로드 실패 시 자동으로 재시도') }} {{ macros.setting_input_text('max_retry', '최대 재시도 횟수', value=arg['max_retry'], desc='최대 재시도 횟수') }}
{% endblock %} {% block tail_js %} ` // I will explicitly add the save logic just in case the static JS relies on specific form IDs. $(document).ready(function(){ // Nothing special needed }); $("body").on('click', '#globalSettingSaveBtn', function(e){ e.preventDefault(); var formData = get_formdata('#setting'); $.ajax({ url: '/' + package_name + '/ajax/' + sub + '/setting_save', type: "POST", cache: false, data: formData, dataType: "json", success: function(ret) { if (ret.ret == 'success') { $.notify('설정을 저장했습니다.', {type:'success'}); } else { $.notify('저장 실패: ' + ret.msg, {type:'danger'}); } } }); }); {% endblock %}