From 1b04c00ae767a8cfec576cb90543ea3a91a59fae Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 11 Oct 2021 16:55:08 +0700 Subject: [PATCH] standardizing on progress/ url --- tubearchivist/home/urls.py | 2 +- tubearchivist/static/progress.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/urls.py b/tubearchivist/home/urls.py index 4a319bb..6ff1670 100644 --- a/tubearchivist/home/urls.py +++ b/tubearchivist/home/urls.py @@ -19,7 +19,7 @@ urlpatterns = [ path("downloads/", DownloadView.as_view(), name="downloads"), path("settings/", SettingsView.as_view(), name="settings"), path("process/", views.process, name="process"), - path("downloads/progress", views.progress, name="progress"), + path("downloads/progress/", views.progress, name="progress"), path("channel/", ChannelView.as_view(), name="channel"), path( "channel//", diff --git a/tubearchivist/static/progress.js b/tubearchivist/static/progress.js index 331b1f7..d69e0d6 100644 --- a/tubearchivist/static/progress.js +++ b/tubearchivist/static/progress.js @@ -32,7 +32,7 @@ function handleInterval() { var watchDownload = setInterval(function() { var req = new XMLHttpRequest(); req.responseType = 'json'; - req.open('GET', '/downloads/progress', true); + req.open('GET', '/downloads/progress/', true); req.onload = function() { var dlProgress = req.response; if (dlProgress['status']) {