From 6c963131917bc272ee555ad6dc18d8c26c7bec4b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 3 Mar 2012 16:02:30 +0100 Subject: [PATCH] add more variables to videoprefix(id, resolution) --- static/js/pandora/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index c1dcb1c8a..09ed4e8c3 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -794,8 +794,10 @@ pandora.getSortOperator = function(key) { pandora.getVideoUrl = function(id, resolution, part) { var prefix = pandora.site.site.videoprefix - .replace('{uid}', Ox.uid()) - .replace('{part}', part); + .replace('{id}', id) + .replace('{part}', part) + .replace('{resolution}', resolution) + .replace('{uid}', Ox.uid()); return prefix + '/' + id + '/' + resolution + 'p' + part + '.' + pandora.user.videoFormat; }