From 6f7b57fc375b8bc7aea708d16ea2dddabcce45cb Mon Sep 17 00:00:00 2001 From: j Date: Sat, 20 Feb 2016 15:53:35 +0000 Subject: [PATCH] add uid42, fixes #2886 --- static/js/embed/pandora.js | 6 ++++-- static/js/utils.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index 20032cd32..574e516c0 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -251,11 +251,13 @@ Ox.load('UI', { } function getVideoURL(id, resolution, part) { - var prefix = pandora.site.site.videoprefix + var uid = Ox.uid(), + prefix = pandora.site.site.videoprefix .replace('{id}', id) .replace('{part}', part) .replace('{resolution}', resolution) - .replace('{uid}', Ox.uid()); + .replace('{uid}', uid) + .replace('{uid42}', uid % 42); return prefix + '/' + id + '/' + resolution + 'p' + part + '.' + pandora.user.videoFormat; } diff --git a/static/js/utils.js b/static/js/utils.js index 8622b6268..54b0280ea 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1943,11 +1943,13 @@ pandora.getVideoURLName = function(id, resolution, part, track) { }; pandora.getVideoURL = function(id, resolution, part, track) { - var prefix = pandora.site.site.videoprefix + var uid = Ox.uid(), + prefix = pandora.site.site.videoprefix .replace('{id}', id) .replace('{part}', part) .replace('{resolution}', resolution) - .replace('{uid}', Ox.uid()), + .replace('{uid}', uid), + .replace('{uid42}', uid % 42), local = pandora.fs && pandora.fs.getVideoURL(id, resolution, part, track); return local || prefix + '/' + pandora.getVideoURLName(id, resolution, part, track);