diff options
-rw-r--r-- | server/server/helpers/webtorrent.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/server/helpers/webtorrent.ts b/server/server/helpers/webtorrent.ts index 29062dae3..c5146c78b 100644 --- a/server/server/helpers/webtorrent.ts +++ b/server/server/helpers/webtorrent.ts | |||
@@ -259,5 +259,7 @@ function buildUrlList (video: MVideo, videoFile: MVideoFile) { | |||
259 | } | 259 | } |
260 | 260 | ||
261 | function buildInfoName (video: MVideo, videoFile: MVideoFile) { | 261 | function buildInfoName (video: MVideo, videoFile: MVideoFile) { |
262 | return `${video.name} ${videoFile.resolution}p${videoFile.extname}` | 262 | const videoName = video.name.replace(/[/\\?%*:|"<>]/g, '-') |
263 | |||
264 | return `${videoName} ${videoFile.resolution}p${videoFile.extname}` | ||
263 | } | 265 | } |