]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
change audio label, 0p > Audio
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Fri, 9 Jul 2021 10:56:41 +0000 (12:56 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 12 Jul 2021 13:34:32 +0000 (15:34 +0200)
Changes the audio label in the Download modal.

server/models/video/formatter/video-format-utils.ts

index 672c671b89aca03a22941127215ab294bb0ce6a8..6b1e5906333f5142ffe26948005bb9b69d154ab3 100644 (file)
@@ -212,7 +212,7 @@ function videoFilesModelToFormattedJSON (
       return {
         resolution: {
           id: videoFile.resolution,
-          label: videoFile.resolution + 'p'
+          label: videoFile.resolution === 0 ? 'Audio' : `${videoFile.resolution}p`
         },
 
         magnetUri: includeMagnet && videoFile.hasTorrent()