diff options
| author | 138138138 <78271024+138138138@users.noreply.github.com> | 2022-06-25 16:33:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-25 16:33:02 +0800 |
| commit | a62adccd3d2e80377d200cb3890d00eea6dd5c8b (patch) | |
| tree | ca309710406adc8b5cb8b334ebad7c2fa1e58521 /src | |
| parent | c75bf35f59864c9f7e37816d657e913f29b40123 (diff) | |
| download | invidious-a62adccd3d2e80377d200cb3890d00eea6dd5c8b.tar.gz invidious-a62adccd3d2e80377d200cb3890d00eea6dd5c8b.tar.bz2 invidious-a62adccd3d2e80377d200cb3890d00eea6dd5c8b.zip | |
change lang to label
lang has to be BCP 47 standard. Using label also can let video.js know there are 2 audio tracks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/api/manifest.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.cr index 476ff65a..b9f81622 100644 --- a/src/invidious/routes/api/manifest.cr +++ b/src/invidious/routes/api/manifest.cr @@ -61,7 +61,7 @@ module Invidious::Routes::API::Manifest next if mime_streams.empty? mime_streams.each do |fmt| - xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, lang: i.to_s) do + xml.element("AdaptationSet", id: i, mimeType: mime_type, startWithSAP: 1, subsegmentAlignment: true, label: i.to_s) do # OTF streams aren't supported yet (See https://github.com/TeamNewPipe/NewPipe/issues/2415) next if !(fmt.has_key?("indexRange") && fmt.has_key?("initRange")) |
