From 9e379c835c2badfe8e9088e25870af0a6a8c4d40 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 21 May 2016 15:05:29 +0200 Subject: Don't send the "http(s)" for the podUrl --- server/controllers/api/v1/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js index 73e496ace..e903cbcf4 100644 --- a/server/controllers/api/v1/videos.js +++ b/server/controllers/api/v1/videos.js @@ -251,7 +251,7 @@ function getFormatedVideo (videoObj) { id: videoObj._id, name: videoObj.name, description: videoObj.description, - podUrl: videoObj.podUrl, + podUrl: videoObj.podUrl.replace(/^https?:\/\//, ''), isLocal: videos.getVideoState(videoObj).owned, magnetUri: videoObj.magnetUri, author: videoObj.author, -- cgit v1.2.3