We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0503d2a commit 8144308Copy full SHA for 8144308
src/invidious/videos.cr
@@ -412,6 +412,15 @@ struct Video
412
end
413
414
415
+
416
+ # Audio-related data
417
+ json.field "audioQuality", fmt["audioQuality"] if fmt.has_key?("audioQuality")
418
+ json.field "audioSampleRate", fmt["audioSampleRate"].as_s.to_i if fmt.has_key?("audioSampleRate")
419
+ json.field "audioChannels", fmt["audioChannels"] if fmt.has_key?("audioChannels")
420
421
+ # Extra misc stuff
422
+ json.field "colorInfo", fmt["colorInfo"] if fmt.has_key?("colorInfo")
423
+ json.field "captionTrack", fmt["captionTrack"] if fmt.has_key?("captionTrack")
424
425
426
0 commit comments