remove torrent backend
This commit is contained in:
parent
9355ae691d
commit
83df2c0011
12 changed files with 29 additions and 142 deletions
|
|
@ -895,7 +895,12 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
} else if (capability.name == 'canPlayVideo') {
|
||||
pandora.UI.set({itemView: ui.videoView});
|
||||
} else if (capability.name == 'canDownloadVideo') {
|
||||
document.location.href = '/' + ui.item + '/torrent/';
|
||||
pandora.ui.downloadVideoDialog({
|
||||
item: ui.item,
|
||||
rightsLevel: data.rightsLevel,
|
||||
title: data.title,
|
||||
video: data.video
|
||||
}).open();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1399,14 +1399,8 @@ pandora.getCurrentFrameAnnotation = function(data) {
|
|||
}());
|
||||
|
||||
pandora.getDownloadLink = function(item, rightslevel) {
|
||||
var torrent = pandora.site.video.torrent,
|
||||
url;
|
||||
if (arguments.length == 2 && torrent &&
|
||||
pandora.hasCapability('canSeeItem', 'guest') < rightslevel) {
|
||||
torrent = false;
|
||||
}
|
||||
url = '/' + item + (torrent ? '/torrent/' : '/download/');
|
||||
if (!torrent && pandora.site.video.downloadFormat) {
|
||||
var url = '/' + item + '/download/';
|
||||
if (pandora.site.video.downloadFormat) {
|
||||
url += Ox.max(pandora.site.video.resolutions) + 'p.' + pandora.site.video.downloadFormat;
|
||||
}
|
||||
return url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue