From: Chocobozzz Date: Thu, 19 Apr 2018 13:37:44 +0000 (+0200) Subject: Add resolution in torrent file name X-Git-Tag: v1.0.0-beta.4~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6cced8f9155175184341416cf5b8d1698f641eb7;p=oweals%2Fpeertube.git Add resolution in torrent file name --- 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 { async createTorrentAndSetInfoHash (videoFile: VideoFileModel) { const options = { - name: this.name + videoFile.extname, + // Keep the extname, it's used by the client to stream the file inside a web browser + name: `${this.name} ${videoFile.resolution}p${videoFile.extname}`, createdBy: 'PeerTube', announceList: [ [ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ],