feat: make get_visitor_data() public

This commit is contained in:
ThetaDev 2024-06-16 02:18:04 +02:00
parent 44f6a7a4a5
commit 2c9402aff6
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,