feat: add channel video/playlist continuation
This commit is contained in:
parent
6f1a1c4440
commit
6ac5bc3782
14 changed files with 19775 additions and 29 deletions
|
|
@ -65,13 +65,6 @@ impl ClientType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize)]
|
||||
struct YTQuery<T> {
|
||||
context: YTContext,
|
||||
#[serde(flatten)]
|
||||
data: T,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct YTContext {
|
||||
|
|
@ -131,6 +124,13 @@ struct ThirdParty {
|
|||
embed_url: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct QContinuation {
|
||||
context: YTContext,
|
||||
continuation: String,
|
||||
}
|
||||
|
||||
const DEFAULT_UA: &str = "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0";
|
||||
|
||||
const CONSENT_COOKIE: &str = "CONSENT";
|
||||
|
|
|
|||
Reference in a new issue