Skip to content

Commit

Permalink
Videos: Stop using TVHTML5_SIMPLY_EMBEDDED_PLAYER (#5063)
Browse files Browse the repository at this point in the history
The age restriction bypass does not work anymore with this client.
See: #2189 (comment)

Related to 2189
  • Loading branch information
SamantazFox committed Nov 10, 2024
2 parents bc86fb8 + 09ccea1 commit d7c35e6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/invidious/videos/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ def extract_video_info(video_id : String)
new_player_response = try_fetch_streaming_data(video_id, client_config)
end

# Last hope
# Only trigger if reason found or didn't work wth Android client.
# TvHtml5ScreenEmbed now requires sig helper for it to work but doesn't work with po_token.
if reason && CONFIG.po_token.nil?
client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed
new_player_response = try_fetch_streaming_data(video_id, client_config)
end

# Replace player response and reset reason
if !new_player_response.nil?
# Preserve captions & storyboard data before replacement
Expand Down

0 comments on commit d7c35e6

Please sign in to comment.