fix: player_from_clients: fall back to TvHtml5Embed client

This commit is contained in:
ThetaDev 2024-08-17 00:21:47 +02:00
parent 8692ca81d9
commit d0ae7961ba
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
2 changed files with 14 additions and 12 deletions

View file

@ -220,12 +220,8 @@ static VISITOR_DATA_REGEX: Lazy<Regex> =
///
/// The order may change in the future in case YouTube applies changes to their
/// platform that disable a client or make it less reliable.
pub const DEFAULT_PLAYER_CLIENT_ORDER: &[ClientType] = &[
ClientType::Tv,
ClientType::TvHtml5Embed,
ClientType::Android,
ClientType::Ios,
];
pub const DEFAULT_PLAYER_CLIENT_ORDER: &[ClientType] =
&[ClientType::Tv, ClientType::Android, ClientType::Ios];
/// The RustyPipe client used to access YouTube's API
///