1
0

force flag, will overwrite existing light/lightcolour logos with dark/primary

This commit is contained in:
2026-01-15 14:59:52 -05:00
parent c5203fcfbb
commit 25ef2adf71
2 changed files with 28 additions and 19 deletions

View File

@@ -75,6 +75,7 @@ python update_channel_logos.py \
| `--execute` | Actually perform the changes (without this, runs in dry-run mode) |
| `--first-only` | Only process the first channel (useful for testing) |
| `--clear` | Clear all logos instead of copying them |
| `--force` | Overwrite existing LogoLight/LogoLightColor (copy mode only) |
## Examples
@@ -102,7 +103,7 @@ python update_channel_logos.py \
3. For each channel:
- **Copy mode**: Downloads the Primary logo and uploads it as LogoLight and LogoLightColor
- **Clear mode**: Deletes Primary, LogoLight, and LogoLightColor
4. Skips channels that already have the logos (copy mode) or have no logos (clear mode)
4. Skips channels that already have the logos (copy mode, unless `--force` is used) or have no logos (clear mode)
5. Shows a summary of results
## Safety Features
@@ -110,7 +111,8 @@ python update_channel_logos.py \
- **Dry run by default**: Always runs in simulation mode unless `--execute` is specified
- **Confirmation prompt**: Asks for confirmation before executing changes
- **First-only testing**: Test on a single channel before processing all channels
- **Skip existing**: In copy mode, skips channels that already have both light logos
- **Skip existing**: In copy mode, skips channels that already have both light logos (unless `--force` is used)
- **Force mode**: Use `--force` to overwrite existing LogoLight/LogoLightColor images with the current Primary logo
## Notes