diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-19 15:37:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-19 15:37:44 +0200 |
commit | 6cced8f9155175184341416cf5b8d1698f641eb7 (patch) | |
tree | 4d812a20b178fa8d0b23d91402daf494242c1a44 /server/models/video | |
parent | 81e504b34e71e91633442c8021e05f9cd52a49c6 (diff) | |
download | PeerTube-6cced8f9155175184341416cf5b8d1698f641eb7.tar.gz PeerTube-6cced8f9155175184341416cf5b8d1698f641eb7.tar.zst PeerTube-6cced8f9155175184341416cf5b8d1698f641eb7.zip |
Add resolution in torrent file name
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 3 |
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' ], |