feat: make get_visitor_data() public
This commit is contained in:
parent
27b1cd1aa7
commit
da1d1bd2a0
2 changed files with 2 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Reference in a new issue