Add resolution in torrent file name
This commit is contained in:
parent
81e504b34e
commit
6cced8f915
|
@ -946,7 +946,8 @@ export class VideoModel extends Model<VideoModel> {
|
||||||
|
|
||||||
async createTorrentAndSetInfoHash (videoFile: VideoFileModel) {
|
async createTorrentAndSetInfoHash (videoFile: VideoFileModel) {
|
||||||
const options = {
|
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',
|
createdBy: 'PeerTube',
|
||||||
announceList: [
|
announceList: [
|
||||||
[ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ],
|
[ CONFIG.WEBSERVER.WS + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT + '/tracker/socket' ],
|
||||||
|
|
Loading…
Reference in New Issue