From 8ba45808be779ead6298526f19f446919d3ccf8c Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 4 Jun 2019 21:14:57 -0500 Subject: [PATCH] Fix typo in '/api/manifest/dash/id' --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('"')