prefix part variable

This commit is contained in:
j 2011-10-28 14:17:18 +02:00
parent 5da7b3b0e7
commit 4a37f20f54

View file

@ -64,8 +64,10 @@ pandora.ui.item = function() {
}); });
pandora.site.video.resolutions.forEach(function(resolution) { pandora.site.video.resolutions.forEach(function(resolution) {
video[resolution] = Ox.range(result.data.parts).map(function(i) { video[resolution] = Ox.range(result.data.parts).map(function(i) {
return pandora.site.site.videoprefix + '/' + pandora.user.ui.item + '/' var part = (i + 1),
+ resolution + 'p' + (i + 1) + '.' + pandora.user.videoFormat; prefix = pandora.site.site.videoprefix.replace('PART', part);
return prefix + '/' + pandora.user.ui.item + '/'
+ resolution + 'p' + part + '.' + pandora.user.videoFormat;
}); });
}); });
} }