mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-07-08 23:08:25 +00:00
Revert "Videos: Fix audio tracks language."
Reverting this commit before merging https://github.com/iv-org/invidious/pull/5149 from upstream
This reverts commit c61b2963ac
.
This commit is contained in:
parent
7d02c1827a
commit
f68d7bcbc7
@ -60,10 +60,6 @@ module Invidious::Routes::API::Manifest
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
audio_streams.reject! do |z|
|
|
||||||
z if z.dig?("audioTrack", "audioIsDefault") == false
|
|
||||||
end
|
|
||||||
|
|
||||||
manifest = XML.build(indent: " ", encoding: "UTF-8") do |xml|
|
manifest = XML.build(indent: " ", encoding: "UTF-8") do |xml|
|
||||||
xml.element("MPD", "xmlns": "urn:mpeg:dash:schema:mpd:2011",
|
xml.element("MPD", "xmlns": "urn:mpeg:dash:schema:mpd:2011",
|
||||||
"profiles": "urn:mpeg:dash:profile:full:2011", minBufferTime: "PT1.5S", type: "static",
|
"profiles": "urn:mpeg:dash:profile:full:2011", minBufferTime: "PT1.5S", type: "static",
|
||||||
|
@ -144,11 +144,6 @@ module Invidious::Routes::Watch
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Removes non default audio tracks
|
|
||||||
audio_streams.reject! do |z|
|
|
||||||
z if z.dig?("audioTrack", "audioIsDefault") == false
|
|
||||||
end
|
|
||||||
|
|
||||||
# Older videos may not have audio sources available.
|
# Older videos may not have audio sources available.
|
||||||
# We redirect here so they're not unplayable
|
# We redirect here so they're not unplayable
|
||||||
if audio_streams.empty? && !video.live_now
|
if audio_streams.empty? && !video.live_now
|
||||||
|
Loading…
Reference in New Issue
Block a user