feat!: generate random visitorData, remove RustyPipeQuery::get_context and YTContext<'a> from public API
This commit is contained in:
parent
9e835c8f38
commit
7c4f44d09c
22 changed files with 99 additions and 258 deletions
|
|
@ -12,9 +12,7 @@ impl RustyPipeQuery {
|
|||
/// Get the videos from the YouTube trending page
|
||||
#[tracing::instrument(skip(self), level = "error")]
|
||||
pub async fn trending(&self) -> Result<Vec<VideoItem>, Error> {
|
||||
let context = self.get_context(ClientType::Desktop, true, None).await;
|
||||
let request_body = QBrowseParams {
|
||||
context,
|
||||
browse_id: "FEtrending",
|
||||
params: "4gIOGgxtb3N0X3BvcHVsYXI%3D",
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue