Skip to content
Snippets Groups Projects
Unverified Commit 6cced8f9 authored by Chocobozzz's avatar Chocobozzz
Browse files

Add resolution in torrent file name

parent 81e504b3
No related branches found
No related tags found
No related merge requests found
......@@ -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' ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment