download via media url

This commit is contained in:
j 2022-11-30 19:44:15 +01:00
parent 729b2ea771
commit ffc2504c0f

View file

@ -128,7 +128,7 @@ pandora.ui.downloadVideoDialog = function(options) {
}, function(result) { }, function(result) {
if (result.data.taskId) { if (result.data.taskId) {
pandora.wait(result.data.taskId, function(result) { pandora.wait(result.data.taskId, function(result) {
console.log('wait -> ', result) //console.log('wait -> ', result)
if (result.data.result) { if (result.data.result) {
url = '/' + options.item url = '/' + options.item
+ '/' + values.resolution + '/' + values.resolution
@ -163,7 +163,7 @@ pandora.ui.downloadVideoDialog = function(options) {
} }
if (url) { if (url) {
that.close(); that.close();
document.location.href = url document.location.href = pandora.getMediaURL(url)
} }
} }
}) })