From 4d8879e02d7e54769b99590be1bd4d23b886c88e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 27 Nov 2011 22:49:58 +0100 Subject: [PATCH] fix embed video url --- static/js/embed/pandora.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index e1bf11b6..92d8b9a9 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -21,8 +21,10 @@ Ox.load('UI', { var video = {}; pandora.site.video.resolutions.forEach(function(resolution) { video[resolution] = Ox.range(result.data.parts).map(function(i) { - return '/' + pandora.user.ui.item + '/' - + resolution + 'p' + (i + 1) + '.' + pandora.user.videoFormat; + var part = (i + 1), + prefix = pandora.site.site.videoprefix.replace('PART', part); + return prefix + '/' + item + '/' + + resolution + 'p' + part + '.' + pandora.user.videoFormat; }); }); that.append(pandora.player = Ox.VideoPlayer({