From 4a37f20f5409309073f0443a03ce613ed0fb61de Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 28 Oct 2011 14:17:18 +0200 Subject: [PATCH] prefix part variable --- static/js/pandora/item.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 5f945014e..846054b16 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -64,8 +64,10 @@ pandora.ui.item = function() { }); pandora.site.video.resolutions.forEach(function(resolution) { video[resolution] = Ox.range(result.data.parts).map(function(i) { - return pandora.site.site.videoprefix + '/' + 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 + '/' + pandora.user.ui.item + '/' + + resolution + 'p' + part + '.' + pandora.user.videoFormat; }); }); }