mirror of
https://github.com/iv-org/invidious.git
synced 2026-06-17 04:16:44 -05:00
Revert "fix: Do not append query params quality=medium to videos that are about to premiere"
This reverts commit 5cfc8dace82590ea6a41c849c9c39b1b7ba95fe7.
This commit is contained in:
parent
5cfc8dace8
commit
a6d4c488ef
@ -129,8 +129,6 @@ module Invidious::Routes::Watch
|
||||
video_streams = video.video_streams
|
||||
audio_streams = video.audio_streams
|
||||
|
||||
# Videos that are a premiere do not have audio streams.
|
||||
if !video.premiere_timestamp.nil?
|
||||
# Older videos may not have audio sources available.
|
||||
# We redirect here so they're not unplayable
|
||||
if audio_streams.empty? && !video.live_now
|
||||
@ -144,7 +142,6 @@ module Invidious::Routes::Watch
|
||||
return env.redirect "/watch?#{env.params.query}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
captions = video.captions
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ module Invidious::Videos::Parser
|
||||
params = self.parse_video_info(video_id, player_response)
|
||||
params["reason"] = JSON::Any.new(reason) if reason
|
||||
|
||||
{"captions", "playabilityStatus", "playerConfig", "storyboards", "microformat"}.each do |f|
|
||||
{"captions", "playabilityStatus", "playerConfig", "storyboards"}.each do |f|
|
||||
params[f] = player_response[f] if player_response[f]?
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user