default download format
This commit is contained in:
parent
5ce9d605f7
commit
d403125757
4 changed files with 11 additions and 2 deletions
|
|
@ -167,7 +167,8 @@ pandora.ui.editor = function(data) {
|
|||
downloadselection: function(data) {
|
||||
document.location.href = '/' + ui.item
|
||||
+ '/' + Ox.max(pandora.site.video.resolutions)
|
||||
+ 'p.webm?t=' + data['in'] + ',' + data.out;
|
||||
+ 'p.' + pandora.site.video.downloadFormat
|
||||
+ '?t=' + data['in'] + ',' + data.out;
|
||||
},
|
||||
editannotation: function(data) {
|
||||
Ox.Log('', 'editAnnotation', data);
|
||||
|
|
|
|||
|
|
@ -1301,7 +1301,11 @@ pandora.getDownloadLink = function(item, rightslevel) {
|
|||
pandora.hasCapability('canSeeItem', 'guest') < rightslevel) {
|
||||
torrent = false;
|
||||
}
|
||||
return '/' + item + (torrent ? '/torrent/' : '/download/');
|
||||
url = '/' + item + (torrent ? '/torrent/' : '/download/');
|
||||
if (!torrent && pandora.site.video.downloadFormat) {
|
||||
url += Ox.max(pandora.site.video.resolutions) + 'p.' + pandora.site.video.downloadFormat;
|
||||
}
|
||||
return url;
|
||||
};
|
||||
|
||||
pandora.getEditTooltip = function(title) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue