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:
Fijxu 2026-05-30 15:05:04 -04:00
parent 5cfc8dace8
commit a6d4c488ef
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4
2 changed files with 12 additions and 15 deletions

View File

@ -129,8 +129,6 @@ module Invidious::Routes::Watch
video_streams = video.video_streams video_streams = video.video_streams
audio_streams = video.audio_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. # 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
@ -144,7 +142,6 @@ module Invidious::Routes::Watch
return env.redirect "/watch?#{env.params.query}" return env.redirect "/watch?#{env.params.query}"
end end
end end
end
captions = video.captions captions = video.captions

View File

@ -109,7 +109,7 @@ module Invidious::Videos::Parser
params = self.parse_video_info(video_id, player_response) params = self.parse_video_info(video_id, player_response)
params["reason"] = JSON::Any.new(reason) if reason 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]? params[f] = player_response[f] if player_response[f]?
end end