add more variables to videoprefix(id, resolution)

This commit is contained in:
j 2012-03-03 16:02:30 +01:00
parent 3330512fe4
commit 6c96313191

View file

@ -794,8 +794,10 @@ pandora.getSortOperator = function(key) {
pandora.getVideoUrl = function(id, resolution, part) { pandora.getVideoUrl = function(id, resolution, part) {
var prefix = pandora.site.site.videoprefix var prefix = pandora.site.site.videoprefix
.replace('{uid}', Ox.uid()) .replace('{id}', id)
.replace('{part}', part); .replace('{part}', part)
.replace('{resolution}', resolution)
.replace('{uid}', Ox.uid());
return prefix + '/' + id + '/' + resolution + 'p' + part + '.' + pandora.user.videoFormat; return prefix + '/' + id + '/' + resolution + 'p' + part + '.' + pandora.user.videoFormat;
} }