diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-11 15:01:22 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-11 15:01:22 -0500 |
| commit | 78ef6a05f011d59275bada2d2b3ea2006b47a1c6 (patch) | |
| tree | 89adf230de9e9a163842091617398442071070ab /src | |
| parent | 7116421fa4d6e5a0e7bf4651731bad8a31518997 (diff) | |
| download | invidious-78ef6a05f011d59275bada2d2b3ea2006b47a1c6.tar.gz invidious-78ef6a05f011d59275bada2d2b3ea2006b47a1c6.tar.bz2 invidious-78ef6a05f011d59275bada2d2b3ea2006b47a1c6.zip | |
Clean up DASH manifest
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 6d95a04e..e66b97ae 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2391,9 +2391,8 @@ get "/api/manifest/dash/id/:id" do |env| audio_streams = video.audio_streams(adaptive_fmts).select { |stream| stream["type"].starts_with? "audio/mp4" } manifest = XML.build(indent: " ", encoding: "UTF-8") do |xml| - xml.element("MPD", "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", "xmlns": "urn:mpeg:DASH:schema:MPD:2011", - "xmlns:yt": "http://youtube.com/yt/2012/10/10", "xsi:schemaLocation": "urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd", - minBufferTime: "PT1.5S", profiles: "urn:mpeg:dash:profile:isoff-main:2011", type: "static", + xml.element("MPD", "xmlns": "urn:mpeg:dash:schema:mpd:2011", + "profiles": "urn:mpeg:dash:profile:isoff-live:2011", minBufferTime: "PT1.5S", type: "static", mediaPresentationDuration: "PT#{video.info["length_seconds"]}S") do xml.element("Period") do xml.element("AdaptationSet", mimeType: "audio/mp4", startWithSAP: 1, subsegmentAlignment: true) do |
