1
Fork 0
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:
TheGeneralist 2026-04-01 14:56:39 +02:00
parent 805916eee7
commit cb0abbb760
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
4 changed files with 466 additions and 13 deletions

View file

@ -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, &timestamp) {
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);