Compare commits
No commits in common. "d78fa371e9f6f0246c9b731e8ad81abfc9a902b2" and "43ed52daf9e79d53471580841aba6fd7e0e89b2c" have entirely different histories.
d78fa371e9
...
43ed52daf9
3 changed files with 3 additions and 11 deletions
|
@ -393,7 +393,7 @@ async fn main() {
|
|||
|
||||
let mut storage_dir = dirs::data_dir().expect("no data dir");
|
||||
storage_dir.push("rustypipe");
|
||||
std::fs::create_dir_all(&storage_dir).expect("could not create data dir");
|
||||
_ = std::fs::create_dir(&storage_dir);
|
||||
|
||||
let mut rp = RustyPipe::builder().storage_dir(storage_dir);
|
||||
if cli.report {
|
||||
|
|
|
@ -458,12 +458,7 @@ impl RustyPipeBuilder {
|
|||
|
||||
/// Return a new, configured RustyPipe instance.
|
||||
pub fn build(self) -> Result<RustyPipe, Error> {
|
||||
self.build_with_client(ClientBuilder::new())
|
||||
}
|
||||
|
||||
/// Return a new, configured RustyPipe instance using a Reqwest client builder.
|
||||
pub fn build_with_client(self, mut client_builder: ClientBuilder) -> Result<RustyPipe, Error> {
|
||||
client_builder = client_builder
|
||||
let mut client_builder = ClientBuilder::new()
|
||||
.user_agent(self.user_agent.unwrap_or_else(|| DEFAULT_UA.to_owned()))
|
||||
.gzip(true)
|
||||
.brotli(true)
|
||||
|
|
|
@ -15,10 +15,7 @@ pub(crate) struct ResolvedUrl {
|
|||
#[serde(untagged)]
|
||||
pub(crate) enum NavigationEndpoint {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
Watch {
|
||||
#[serde(alias = "reelWatchEndpoint")]
|
||||
watch_endpoint: WatchEndpoint,
|
||||
},
|
||||
Watch { watch_endpoint: WatchEndpoint },
|
||||
#[serde(rename_all = "camelCase")]
|
||||
Browse {
|
||||
browse_endpoint: BrowseEndpoint,
|
||||
|
|
Loading…
Reference in a new issue