projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e504b
)
Add resolution in torrent file name
author
Chocobozzz
<me@florianbigard.com>
Thu, 19 Apr 2018 13:37:44 +0000
(15:37 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 19 Apr 2018 13:37:44 +0000
(15:37 +0200)
server/models/video/video.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video.ts
b/server/models/video/video.ts
index 70d3948ee47870aa2d5484431a0140c694516454..aef75d2062cb920469e10e318296755e50566ed8 100644
(file)
--- 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' ],