use direct download for private items. Torrents only work if item is public
This commit is contained in:
parent
f82f2d8b07
commit
d74a264a6a
3 changed files with 12 additions and 6 deletions
|
|
@ -928,8 +928,14 @@ pandora.getClipVideos = function(clip, resolution) {
|
|||
};
|
||||
}());
|
||||
|
||||
pandora.getDownloadLink = function(item) {
|
||||
return '/' + item + (pandora.site.video.torrent ? '/torrent/' : '/download/');
|
||||
pandora.getDownloadLink = function(item, rightslevel) {
|
||||
console.log('pandora.getDownloadLink', item, rightslevel);
|
||||
var torrent = pandora.site.video.torrent;
|
||||
if (arguments.length == 2 && torrent &&
|
||||
pandora.site.capabilities.canSeeItem.guest < rightslevel) {
|
||||
torrent = false;
|
||||
}
|
||||
return '/' + item + (torrent ? '/torrent/' : '/download/');
|
||||
}
|
||||
|
||||
pandora.getEditTooltip = function(title) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue