]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't send the "http(s)" for the podUrl
authorChocobozzz <florian.bigard@gmail.com>
Sat, 21 May 2016 13:05:29 +0000 (15:05 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Sat, 21 May 2016 13:05:29 +0000 (15:05 +0200)
server/controllers/api/v1/videos.js

index 73e496ace0a4ccee34a5950cc2a37befe21c2aa4..e903cbcf4135950da1dd89769a88f75ebbcd1fb3 100644 (file)
@@ -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,