aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/models/video/video.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 70d3948ee..aef75d206 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -946,7 +946,8 @@ export class VideoModel extends Model<VideoModel> {
946 946
947 async createTorrentAndSetInfoHash (videoFile: VideoFileModel) { 947 async createTorrentAndSetInfoHash (videoFile: VideoFileModel) {
948 const options = { 948 const options = {
949 name: this.name + videoFile.extname, 949 // Keep the extname, it's used by the client to stream the file inside a web browser
950 name: `${this.name} ${videoFile.resolution}p${videoFile.extname}`,
950 createdBy: 'PeerTube', 951 createdBy: 'PeerTube',
951 announceList: [ 952 announceList: [
952 [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ], 953 [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ],