forked from 0x2620/pandora
hook up download
This commit is contained in:
parent
11a50ae7d4
commit
282a835815
1 changed files with 4 additions and 0 deletions
|
@ -135,6 +135,7 @@ pandora.ui.item = function() {
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
cuts: result.data.cuts || [],
|
cuts: result.data.cuts || [],
|
||||||
duration: result.data.duration,
|
duration: result.data.duration,
|
||||||
|
enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= result.data.rightslevel,
|
||||||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||||
find: pandora.user.ui.itemFind,
|
find: pandora.user.ui.itemFind,
|
||||||
getTimelineImageURL: function(i) {
|
getTimelineImageURL: function(i) {
|
||||||
|
@ -176,6 +177,9 @@ pandora.ui.item = function() {
|
||||||
annotationssort: function(data) {
|
annotationssort: function(data) {
|
||||||
pandora.UI.set({annotationsSort: data.sort});
|
pandora.UI.set({annotationsSort: data.sort});
|
||||||
},
|
},
|
||||||
|
downloadvideo: function(data) {
|
||||||
|
document.location.href = '/' + pandora.user.ui.item + '/torrent/';
|
||||||
|
},
|
||||||
find: function(data) {
|
find: function(data) {
|
||||||
pandora.UI.set('itemFind', data.find);
|
pandora.UI.set('itemFind', data.find);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue