standardizing on progress/ url

This commit is contained in:
simon 2021-10-11 16:55:08 +07:00
parent 9f12966ef7
commit 1b04c00ae7
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ urlpatterns = [
path("downloads/", DownloadView.as_view(), name="downloads"), path("downloads/", DownloadView.as_view(), name="downloads"),
path("settings/", SettingsView.as_view(), name="settings"), path("settings/", SettingsView.as_view(), name="settings"),
path("process/", views.process, name="process"), 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/", ChannelView.as_view(), name="channel"),
path( path(
"channel/<slug:channel_id_detail>/", "channel/<slug:channel_id_detail>/",

View File

@ -32,7 +32,7 @@ function handleInterval() {
var watchDownload = setInterval(function() { var watchDownload = setInterval(function() {
var req = new XMLHttpRequest(); var req = new XMLHttpRequest();
req.responseType = 'json'; req.responseType = 'json';
req.open('GET', '/downloads/progress', true); req.open('GET', '/downloads/progress/', true);
req.onload = function() { req.onload = function() {
var dlProgress = req.response; var dlProgress = req.response;
if (dlProgress['status']) { if (dlProgress['status']) {