feat: -x/--exclude to skip folders during --repair/--retag-from-path
Repeatable -x/--exclude NAME skips any artist- or source-level folder whose name matches (case-insensitive) when walking the library, so hand-curated folders like /media/music/Unsorted or .../playlists are left untouched. Threaded through _iter_source_files -> repair_library / retag_library_from_path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -96,6 +96,7 @@ export LIDARR_API_KEY="your-lidarr-api-key"
|
||||
| `--search-all` | Search all albums when adding an artist to Lidarr. |
|
||||
| `--repair` | Re-tag existing downloads under `--root` from source metadata (see below). |
|
||||
| `--retag-from-path` | Offline: re-tag artist/title from folder + filename (see below). |
|
||||
| `-x`, `--exclude NAME` | Folder under `--root` to skip during `--repair`/`--retag-from-path` (repeatable). |
|
||||
| `--debug` | Verbose output. |
|
||||
|
||||
### Examples
|
||||
@@ -154,6 +155,9 @@ artist/title and leaves album/year alone.
|
||||
```bash
|
||||
./musicfetch --retag-from-path -d # preview
|
||||
./musicfetch --retag-from-path -o /media/music
|
||||
|
||||
# Skip folders (e.g. hand-curated playlists you don't want re-tagged)
|
||||
./musicfetch --repair -x Unsorted -x playlists
|
||||
```
|
||||
|
||||
### 📁 Output Structure
|
||||
|
||||
Reference in New Issue
Block a user