Fix: Remove JS backticks and use strings for Jinja2 URLs

This commit is contained in:
2026-01-06 20:17:04 +09:00
parent 7cb4e0b56e
commit 7b71bd05ad
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
name: GDM name: GDM
package_name: gommi_downloader_manager package_name: gommi_downloader_manager
version: '0.1.12' version: '0.1.13'
description: FlaskFarm 범용 다운로더 큐 - YouTube, 애니24, 링크애니, Anilife 지원 description: FlaskFarm 범용 다운로더 큐 - YouTube, 애니24, 링크애니, Anilife 지원
developer: projectdx developer: projectdx
home: https://gitea.yommi.duckdns.org/projectdx/gommi_downloader_manager home: https://gitea.yommi.duckdns.org/projectdx/gommi_downloader_manager

View File

@@ -408,7 +408,7 @@
function refreshList(silent) { function refreshList(silent) {
$.ajax({ $.ajax({
url: `/${{ arg['package_name'] }}/ajax/${{ arg['module_name'] }}/list`, url: '/{{ arg['package_name'] }}/ajax/{{ arg['module_name'] }}/list',
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
data: {}, data: {},
@@ -534,7 +534,7 @@
function cancelDownload(id) { function cancelDownload(id) {
$.ajax({ $.ajax({
url: `/${PACKAGE_NAME}/ajax/${MODULE_NAME}/cancel`, url: '/{{ arg['package_name'] }}/ajax/{{ arg['module_name'] }}/cancel',
type: 'POST', type: 'POST',
data: { id: id }, data: { id: id },
dataType: 'json', dataType: 'json',
@@ -550,7 +550,7 @@
function resetList() { function resetList() {
if (!confirm('Are you sure you want to clear the entire queue?')) return; if (!confirm('Are you sure you want to clear the entire queue?')) return;
$.ajax({ $.ajax({
url: `/${PACKAGE_NAME}/ajax/${MODULE_NAME}/reset`, url: '/{{ arg['package_name'] }}/ajax/{{ arg['module_name'] }}/reset',
type: 'POST', type: 'POST',
data: {}, data: {},
dataType: 'json', dataType: 'json',
@@ -566,7 +566,7 @@
// Socket Init // Socket Init
try { try {
if (typeof io !== 'undefined') { if (typeof io !== 'undefined') {
const socket = io.connect(`/${{ arg['package_name'] }}/queue`); const socket = io.connect('/{{ arg['package_name'] }}/queue');
socket.on('download_status', function(data) { socket.on('download_status', function(data) {
updateDownloadCard(data); updateDownloadCard(data);
}); });