Skip to content

Commit ac686fe

Browse files
authored
Merge pull request #3075 from SamantazFox/video-api-newpipe-compat-2
Video API: Improve NewPipe compatibility (part 2)
2 parents 66e2c01 + 7f2176d commit ac686fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/invidious/videos.cr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ struct Video
413413
end
414414
end
415415

416+
# Livestream chunk infos
417+
json.field "targetDurationSec", fmt["targetDurationSec"].as_i if fmt.has_key?("targetDurationSec")
418+
json.field "maxDvrDurationSec", fmt["maxDvrDurationSec"].as_i if fmt.has_key?("maxDvrDurationSec")
419+
416420
# Audio-related data
417421
json.field "audioQuality", fmt["audioQuality"] if fmt.has_key?("audioQuality")
418422
json.field "audioSampleRate", fmt["audioSampleRate"].as_s.to_i if fmt.has_key?("audioSampleRate")

0 commit comments

Comments
 (0)