feat: make get_visitor_data() public

This commit is contained in:
ThetaDev 2024-06-16 02:18:04 +02:00
parent 27b1cd1aa7
commit da1d1bd2a0
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
2 changed files with 2 additions and 20 deletions

View file

@ -1259,7 +1259,7 @@ impl RustyPipeQuery {
}
/// Get a YouTube visitor data cookie, which is necessary for certain requests
async fn get_visitor_data(&self) -> Result<String, Error> {
pub async fn get_visitor_data(&self) -> Result<String, Error> {
match &self.opts.visitor_data {
Some(vd) => Ok(vd.clone()),
None => self.client.get_visitor_data().await,