ActivityPub-federated video streaming platform using P2P directly in your web browser
Add resolution in torrent file name
Chocobozzz6cced8f91551
diff --git a/server/models/video/video.ts b/server/models/video/video.tsindex 70d3948ee4..aef75d2062 100644--- a/server/models/video/video.ts+++ b/server/models/video/video.ts@@ -946,7 +946,8 @@ export class VideoModel extends Model<VideoModel> {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' ],