X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo.js;h=330067cdfa6e892776692f1787fd70efe22f2ea4;hb=437cf8b531652a4b101ec279dea7661e8dfb8cda;hp=527652230c66311eaced4c8fc197f112cd84ef7d;hpb=c77fa067a18a1fea34d5f277da19c2e4712018fa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video.js b/server/models/video.js index 527652230..330067cdf 100644 --- a/server/models/video.js +++ b/server/models/video.js @@ -155,7 +155,7 @@ function generateMagnetUri () { baseUrlWs = constants.CONFIG.WEBSERVER.WS + '://' + constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT } else { baseUrlHttp = constants.REMOTE_SCHEME.HTTP + '://' + this.podHost - baseUrlWs = constants.REMOTE_SCHEME.WS + this.podHost + baseUrlWs = constants.REMOTE_SCHEME.WS + '://' + this.podHost } const xs = baseUrlHttp + constants.STATIC_PATHS.TORRENTS + this.getTorrentName() @@ -243,7 +243,7 @@ function toRemoteJSON (callback) { thumbnailBase64: new Buffer(thumbnailData).toString('base64'), tags: self.tags, createdDate: self.createdDate, - podHost: self.podHost + extname: self.extname } return callback(null, remoteVideo)