Compare commits
2 commits
ccbc966282
...
ffc2504c0f
| Author | SHA1 | Date | |
|---|---|---|---|
| ffc2504c0f | |||
| 729b2ea771 |
2 changed files with 9 additions and 3 deletions
|
|
@ -128,7 +128,7 @@ pandora.ui.downloadVideoDialog = function(options) {
|
|||
}, function(result) {
|
||||
if (result.data.taskId) {
|
||||
pandora.wait(result.data.taskId, function(result) {
|
||||
console.log('wait -> ', result)
|
||||
//console.log('wait -> ', result)
|
||||
if (result.data.result) {
|
||||
url = '/' + options.item
|
||||
+ '/' + values.resolution
|
||||
|
|
@ -163,7 +163,7 @@ pandora.ui.downloadVideoDialog = function(options) {
|
|||
}
|
||||
if (url) {
|
||||
that.close();
|
||||
document.location.href = url
|
||||
document.location.href = pandora.getMediaURL(url)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -84,7 +84,13 @@ pandora.ui.player = function(data) {
|
|||
}), 'clip');
|
||||
},
|
||||
downloadvideo: function() {
|
||||
document.location.href = pandora.getDownloadLink(ui.item, data.rightslevel);
|
||||
pandora.ui.downloadVideoDialog({
|
||||
item: ui.item,
|
||||
rightsLevel: data.rightsLevel,
|
||||
source: data.source && pandora.hasCapability('canDownloadSource'),
|
||||
title: data.title,
|
||||
video: data.video
|
||||
}).open();
|
||||
},
|
||||
find: function(data) {
|
||||
pandora.UI.set({itemFind: data.find});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue