download via media url
This commit is contained in:
parent
729b2ea771
commit
ffc2504c0f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue