fix embed video url

This commit is contained in:
j 2011-11-27 22:49:58 +01:00
parent 16d7140158
commit 4d8879e02d

View file

@ -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({