diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-04 21:14:57 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-04 21:14:57 -0500 |
| commit | 8ba45808be779ead6298526f19f446919d3ccf8c (patch) | |
| tree | 44df9397553ef7945fd3757adba39d5dfbd96de1 /src | |
| parent | d876fd7f5b193ce444e8575da7dc70ce5386b364 (diff) | |
| download | invidious-8ba45808be779ead6298526f19f446919d3ccf8c.tar.gz invidious-8ba45808be779ead6298526f19f446919d3ccf8c.tar.bz2 invidious-8ba45808be779ead6298526f19f446919d3ccf8c.zip | |
Fix typo in '/api/manifest/dash/id'
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index f94ce576..b1ec2705 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4767,8 +4767,8 @@ get "/api/manifest/dash/id/:id" do |env| i += 1 end + heights = [] of Int32 {"video/mp4", "video/webm"}.each do |mime_type| - heights = [] of Int32 xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, scanType: "progressive") do video_streams.select { |stream| stream["type"].starts_with? mime_type }.each do |fmt| codecs = fmt["type"].split("codecs=")[1].strip('"') |
