feat: add URL resolver

This commit is contained in:
ThetaDev 2022-10-16 01:40:52 +02:00
parent 2b70badd4e
commit b22f6995cc
22 changed files with 673 additions and 279 deletions

View file

@ -239,7 +239,7 @@ impl MapResponse<VideoDetails> for response::VideoDetails {
page_type,
browse_id,
} => match page_type {
crate::serializer::text::PageType::Channel => (browse_id, text),
response::url_endpoint::PageType::Channel => (browse_id, text),
_ => {
return Err(ExtractionError::InvalidData(
"invalid channel link type".into(),