Rebrand: Renamr -> Aurora Curator (new logo/app icon, renamed crate aurora-curator-core, package/identifier/window-title updates, README + in-app text)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
//! The Tauri-facing side of rename history/undo: persists the log
|
||||
//! `renamr_core::history` produces to disk (plain JSON in the OS app-config
|
||||
//! `aurora_curator_core::history` produces to disk (plain JSON in the OS app-config
|
||||
//! directory, alongside `settings.json`) and exposes it to the UI as two commands -
|
||||
//! list the log, and undo one batch from it.
|
||||
|
||||
use renamr_core::history::{self, HistoryBatch, HistoryEntry, RevertResult};
|
||||
use renamr_core::rename::{RenameAction, RenameOutcome, RenameResult};
|
||||
use aurora_curator_core::history::{self, HistoryBatch, HistoryEntry, RevertResult};
|
||||
use aurora_curator_core::rename::{RenameAction, RenameOutcome, RenameResult};
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
@@ -45,7 +45,7 @@ fn now_millis() -> u64 {
|
||||
/// Called right after a rename batch executes (see `execute_rename` in `lib.rs`) -
|
||||
/// records only the entries that were actually renamed/copied/linked, and the action
|
||||
/// that was used to do it (so `undo_rename_batch` later knows whether to move the
|
||||
/// result back or just delete it - see `renamr_core::history::revert_one`); a file that
|
||||
/// result back or just delete it - see `aurora_curator_core::history::revert_one`); a file that
|
||||
/// was unchanged, skipped, or failed has nothing to undo. Best-effort: if persisting the
|
||||
/// history fails for some reason, the operation itself already succeeded and shouldn't
|
||||
/// be reported as failed just because its undo record couldn't be saved, so errors here
|
||||
|
||||
@@ -4,10 +4,10 @@ mod metadata;
|
||||
mod presets;
|
||||
mod settings;
|
||||
|
||||
use renamr_core::format::ExpressionFormat;
|
||||
use renamr_core::matching::{self, EpisodeGuess, MovieGuess, ReleaseInfo};
|
||||
use renamr_core::rename::{self, ConflictPolicy, RenameAction, RenamePlanItem, RenameResult};
|
||||
use renamr_core::string_bindings;
|
||||
use aurora_curator_core::format::ExpressionFormat;
|
||||
use aurora_curator_core::matching::{self, EpisodeGuess, MovieGuess, ReleaseInfo};
|
||||
use aurora_curator_core::rename::{self, ConflictPolicy, RenameAction, RenamePlanItem, RenameResult};
|
||||
use aurora_curator_core::string_bindings;
|
||||
use std::collections::HashMap;
|
||||
use tauri::AppHandle;
|
||||
|
||||
@@ -42,7 +42,7 @@ fn guess_movie(filename: String) -> Option<MovieGuess> {
|
||||
|
||||
/// Guesses release-tag metadata (resolution, source, video/audio codec, release
|
||||
/// group) from a filename's own text using local regex patterns only - no network
|
||||
/// calls, no real media probing (Renamr never ships an ffprobe/MediaInfo dependency,
|
||||
/// calls, no real media probing (Aurora Curator never ships an ffprobe/MediaInfo dependency,
|
||||
/// so filename tags are the only source for these fields). Independent of
|
||||
/// `guess_episode`/`guess_movie`: called alongside whichever of those two applies,
|
||||
/// since a release name carries (or doesn't carry) these tags regardless of whether
|
||||
@@ -53,7 +53,7 @@ fn guess_release_info(filename: String) -> Option<ReleaseInfo> {
|
||||
}
|
||||
|
||||
/// Executes a batch of planned on-disk rename/copy/symlink operations (optionally
|
||||
/// moving/copying files into subfolders - see `renamr_core::rename`). `action` picks
|
||||
/// moving/copying files into subfolders - see `aurora_curator_core::rename`). `action` picks
|
||||
/// which of the three happens; `conflict` picks what happens when a computed target
|
||||
/// already exists (skip it, save alongside it with an auto-numbered name, or replace
|
||||
/// it) - the UI is expected to have already shown the user the full old-path/new-path
|
||||
@@ -103,5 +103,5 @@ pub fn run() {
|
||||
files::expand_dropped_paths,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running Renamr");
|
||||
.expect("error while running Aurora Curator");
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
renamr_lib::run();
|
||||
aurora_curator_lib::run();
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! Fetch Data needs a series name and season/episode to search with, which is exactly
|
||||
//! what Match already produces for free, offline.
|
||||
|
||||
use renamr_core::web::tmdb::{SeasonEpisode, TmdbClient};
|
||||
use aurora_curator_core::web::tmdb::{SeasonEpisode, TmdbClient};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use tauri::AppHandle;
|
||||
@@ -182,7 +182,7 @@ async fn run_movie_fetch(token: String, items: Vec<MovieFetchQuery>) -> Vec<Movi
|
||||
title: info.title,
|
||||
release_date: info.release_date,
|
||||
},
|
||||
Err(renamr_core::web::tmdb::TmdbError::NotFound(_)) => MovieFetchOutcome::NotFound,
|
||||
Err(aurora_curator_core::web::tmdb::TmdbError::NotFound(_)) => MovieFetchOutcome::NotFound,
|
||||
Err(error) => MovieFetchOutcome::Failed { error: error.to_string() },
|
||||
};
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
//! Small persisted app settings - currently just the TMDB API token ("Fetch Data" needs
|
||||
//! it; everything else in the app works offline without any settings at all). Stored as
|
||||
//! plain JSON in Tauri's per-OS app config directory (e.g.
|
||||
//! `~/Library/Application Support/com.renamr.app/settings.json` on macOS,
|
||||
//! `~/.config/renamr/settings.json` on Linux) - not the original FileBot's config
|
||||
//! location, since that's Java Preferences-backed and OS/JVM-specific; this is Renamr's
|
||||
//! `~/Library/Application Support/com.auroracurator.app/settings.json` on macOS,
|
||||
//! `~/.config/aurora-curator/settings.json` on Linux) - not the original FileBot's config
|
||||
//! location, since that's Java Preferences-backed and OS/JVM-specific; this is Aurora Curator's
|
||||
//! own, analogous location for its own settings.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
Reference in New Issue
Block a user