Merge csv_uploader into xb_seed_status as --upload-csv mode
This commit is contained in:
50
README.md
50
README.md
@@ -12,7 +12,7 @@ Matches `{id}.torrent` files against your qBittorrent session and updates NocoDB
|
||||
### API Mode (updates NocoDB directly)
|
||||
|
||||
```bash
|
||||
python seed_tracker.py \
|
||||
python xb_seed_status.py \
|
||||
--id-folder ./torrents \
|
||||
--bt-backup ~/.local/share/qBittorrent/BT_backup \
|
||||
--nocodb-url https://noco.example.com \
|
||||
@@ -23,40 +23,17 @@ python seed_tracker.py \
|
||||
### CSV Mode (outputs file for manual import)
|
||||
|
||||
```bash
|
||||
python seed_tracker.py \
|
||||
python xb_seed_status.py \
|
||||
--id-folder ./torrents \
|
||||
--bt-backup ~/.local/share/qBittorrent/BT_backup \
|
||||
--csv-only
|
||||
```
|
||||
|
||||
## Flags
|
||||
|
||||
| Flag | Required | Description |
|
||||
|------|----------|-------------|
|
||||
| `--id-folder` | Yes | Folder containing `{id}.torrent` files |
|
||||
| `--bt-backup` | Yes | qBittorrent's `BT_backup` folder |
|
||||
| `--nocodb-url` | API mode | NocoDB base URL |
|
||||
| `--table-id` | API mode | Table ID |
|
||||
| `--api-token` | API mode | API token (`xc-token`) |
|
||||
| `--csv-only` | No | Skip API, output CSV instead |
|
||||
| `--output` | No | CSV output path (default: `seeding_update.csv`) |
|
||||
| `--debug` | No | Print API request/response details |
|
||||
|
||||
## Finding NocoDB IDs
|
||||
|
||||
- **Table ID**: Click `...` next to table name → Copy Table ID
|
||||
|
||||
---
|
||||
|
||||
# CSV Uploader
|
||||
|
||||
Uploads CSV files generated by others (via `--csv-only`) to NocoDB.
|
||||
|
||||
## Usage
|
||||
### Upload CSV (import someone else's CSV to NocoDB)
|
||||
|
||||
```bash
|
||||
python csv_uploader.py \
|
||||
--csv seeds.csv \
|
||||
python xb_seed_status.py \
|
||||
--upload-csv seeds.csv \
|
||||
--nocodb-url https://noco.example.com \
|
||||
--table-id xxxxxxxxxxxxx \
|
||||
--api-token xc-xxxx
|
||||
@@ -66,7 +43,16 @@ python csv_uploader.py \
|
||||
|
||||
| Flag | Required | Description |
|
||||
|------|----------|-------------|
|
||||
| `--csv` | Yes | CSV file to upload |
|
||||
| `--nocodb-url` | Yes | NocoDB base URL |
|
||||
| `--table-id` | Yes | Table ID |
|
||||
| `--api-token` | Yes | API token |
|
||||
| `--id-folder` | Scan modes | Folder containing `{id}.torrent` files |
|
||||
| `--bt-backup` | Scan modes | qBittorrent's `BT_backup` folder |
|
||||
| `--nocodb-url` | API modes | NocoDB base URL |
|
||||
| `--table-id` | API modes | Table ID |
|
||||
| `--api-token` | API modes | API token (`xc-token`) |
|
||||
| `--csv-only` | No | Skip API, output CSV instead |
|
||||
| `--output` | No | CSV output path (default: `seeding_update.csv`) |
|
||||
| `--upload-csv` | No | Upload a CSV file to NocoDB (skip torrent scanning) |
|
||||
| `--debug` | No | Print API request/response details |
|
||||
|
||||
## Finding NocoDB IDs
|
||||
|
||||
- **Table ID**: Click `...` next to table name → Copy Table ID
|
||||
|
||||
Reference in New Issue
Block a user