mirror of
https://github.com/thegeneralist01/archivr
synced 2026-05-30 08:36:47 +02:00
Flatten tweet archives and rearchive tweet assets
This commit is contained in:
parent
805916eee7
commit
cb0abbb760
4 changed files with 466 additions and 13 deletions
|
|
@ -42,6 +42,8 @@ enum Command {
|
|||
/// ...
|
||||
/// raw/
|
||||
/// ...
|
||||
/// raw_tweets/
|
||||
/// ...
|
||||
/// structured/
|
||||
/// ...
|
||||
#[arg(default_value = "./.archivr/store")]
|
||||
|
|
@ -346,10 +348,14 @@ fn main() -> Result<()> {
|
|||
parse_explicit_archive_request(path)
|
||||
{
|
||||
match downloader::tweets::archive(&request, &store_path, ×tamp) {
|
||||
Ok(output_dir) => {
|
||||
Ok(downloader::tweets::TweetArchiveResult::Archived(output_dir)) => {
|
||||
println!("Tweet archived successfully to {}", output_dir.display());
|
||||
return Ok(());
|
||||
}
|
||||
Ok(downloader::tweets::TweetArchiveResult::Skipped(output_dir)) => {
|
||||
println!("Tweet already archived in {}", output_dir.display());
|
||||
return Ok(());
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("Failed to archive tweet: {e}");
|
||||
process::exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue