mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
standardizing on progress/ url
This commit is contained in:
parent
9f12966ef7
commit
1b04c00ae7
@ -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>/",
|
||||||
|
@ -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']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user