Merge pull request #3075 from SamantazFox/video-api-newpipe-compat-2

Video API: Improve NewPipe compatibility (part 2)
このコミットが含まれているのは:
Samantaz Fox 2022-05-01 19:11:59 +02:00 committed by GitHub
コミット ac686fefe1
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加0行の削除

ファイルの表示

@ -413,6 +413,10 @@ struct Video
end
end
# Livestream chunk infos
json.field "targetDurationSec", fmt["targetDurationSec"].as_i if fmt.has_key?("targetDurationSec")
json.field "maxDvrDurationSec", fmt["maxDvrDurationSec"].as_i if fmt.has_key?("maxDvrDurationSec")
# Audio-related data
json.field "audioQuality", fmt["audioQuality"] if fmt.has_key?("audioQuality")
json.field "audioSampleRate", fmt["audioSampleRate"].as_s.to_i if fmt.has_key?("audioSampleRate")