From 729b2ea771b7ae17a784d9b3b9f00277fcdd4c7e Mon Sep 17 00:00:00 2001 From: j Date: Wed, 30 Nov 2022 19:44:03 +0100 Subject: [PATCH] use download dialog in player --- static/js/player.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/player.js b/static/js/player.js index 3ed11e83f..aaeb1a4dc 100644 --- a/static/js/player.js +++ b/static/js/player.js @@ -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});