These three modules were ported from NewPipeExtractor in Phase 1 as
part of the spine. Nothing in the YT extractor (channel/search/stream/
playlist/linkhandler) imports them, and the strawcore wrapper crate
that consumes us doesn't re-export them either. Per the round-2
audit's cruft inventory, this is ~195 LOC of dead surface shipping
to every Android APK.
* page.rs — Page continuation carrier; continuation tokens flow
through the codebase as plain Strings.
* metainfo.rs — NPE MetaInfo info-card struct; no extractor
populates it.
* service.rs — StreamingService trait + ServiceInfo + LinkType;
zero impls exist anywhere.
Wrapper does not need to change — none of the pub use re-exports
crossed the crate boundary.
19 lines
620 B
Rust
19 lines
620 B
Rust
// Rust port of NewPipeExtractor (YT-only).
|
|
//
|
|
// The spine ports the core NPE contract — errors, localization, the
|
|
// Downloader trait, value types, the NewPipe singleton — and then the
|
|
// YT-specific extractors live under `youtube/`.
|
|
|
|
pub mod downloader;
|
|
pub mod exceptions;
|
|
pub mod image;
|
|
pub mod localization;
|
|
pub mod newpipe;
|
|
pub mod stream;
|
|
pub mod youtube;
|
|
|
|
pub use downloader::{Downloader, Request, Response};
|
|
pub use exceptions::{ExtractionError, NetworkError, ParsingError};
|
|
pub use image::{Image, ImageSet, ResolutionLevel};
|
|
pub use localization::{ContentCountry, Localization};
|
|
pub use newpipe::NewPipe;
|