summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious.cr6
-rw-r--r--src/invidious/videos.cr4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 3129f6d2..dda725ff 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -3735,8 +3735,8 @@ get "/api/manifest/dash/id/:id" do |env|
halt env, status_code: 403
end
- if video.info["dashmpd"]?
- manifest = client.get(video.info["dashmpd"]).body
+ if dashmpd = video.player_response["streamingData"]["dashManifestUrl"]?.try &.as_s
+ manifest = client.get(dashmpd).body
manifest = manifest.gsub(/<BaseURL>[^<]+<\/BaseURL>/) do |baseurl|
url = baseurl.lchop("<BaseURL>")
@@ -3993,7 +3993,7 @@ get "/videoplayback" do |env|
end
if response.status_code >= 400
- halt env, status_code: 403
+ halt env, status_code: response.status_code
end
client = make_client(URI.parse(host), proxies, region)
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 03770af7..e02378f7 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -300,9 +300,9 @@ class Video
self.info["adaptive_fmts"].split(",") do |string|
adaptive_fmts << HTTP::Params.parse(string)
end
- elsif self.info.has_key?("dashmpd")
+ elsif dashmpd = self.player_response["streamingData"]["dashManifestUrl"]?.try &.as_s
client = make_client(YT_URL)
- response = client.get(self.info["dashmpd"])
+ response = client.get(dashmpd)
document = XML.parse_html(response.body)
document.xpath_nodes(%q(//adaptationset)).each do |adaptation_set|
s='logmsg'> `width: 100%` sets the content-box width, unless the box-sizing value is `border-box`, see: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing (`box-sizing: border-box` is already the default for `<select>`). In platforms with more padding by default on inputs (like Firefox on Linux for example) this can cause the inputs to overflow the popup. Also shrink the padding manually to what the popup layout expects, so that it doesn't grow past the popup. Additionally we remove the appearance from checkboxes so that they don't take up space. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1625716. 2020-03-29Proactively remove Twitter service workerSimonBrazell 2020-03-24Remove OS files from repoSimonBrazell 2020-03-24Add donate link to READMESimonBrazell 2020-03-21Update store screenshotsSimonBrazell 2020-03-21Address issues #21, #22, #23, #24, #25 & #26v1.1.16SimonBrazell 2020-03-10Add 'Always proxy video' as a settings & avoid youtube-dl.org redirectsv1.1.15SimonBrazell 2020-02-27Update store screenshotsSimonBrazell 2020-02-27Support for OSM layers, streetview workaround, & youtu.bev1.1.14SimonBrazell 2020-02-25Fix OSM embed bbox & add default zoom (17)v1.1.13SimonBrazell 2020-02-25Basic support for OSM embed & directionsv1.1.12SimonBrazell 2020-02-24Fix OSM redirectsv1.1.11SimonBrazell 2020-02-24OSM redirects (except embedded maps)SimonBrazell 2020-02-23OSM redirects (experimental)SimonBrazell 2020-02-22Add date retrieved and source to YT assetsSimonBrazell 2020-02-22Always proxy video through Invidious without an accountv1.1.9SimonBrazell 2020-02-19Redirect requests for 'YouTube Player API' assets to local files instead.v1.1.8SimonBrazell 2020-02-12Avoid redirecting `tweetdeck.twitter.com` & list instancesv1.1.7SimonBrazell 2020-02-09Updated screenshotsSimonBrazell 2020-02-09Avoid redirecting `studio.youtube.com` & basic instance validationv1.1.6SimonBrazell 2020-02-06Fix missing query strings in redirectsv1.1.5SimonBrazell 2020-02-01Add support for Bibliogram redirectsv1.1.4SimonBrazell 2020-01-15Fix embedded video redirectsSimonBrazell 2019-10-30Update screen shots for latest buildSimonBrazell 2019-10-30Add instances to popup menuSimonBrazell