Add --sync=shows support (--sync=tv is deprecated)
MODIFY
README.md
README.md
@@ -202,7 +202,7 @@ You can view sync progress in the `last_update.log` file which will be created.
### Sync
-The `sync` subcommand supports `--sync=tv` and `--sync=movies` options,
+The `sync` subcommand supports `--sync=shows` and `--sync=movies` options,
so you can sync only specific library types.
```
@@ -212,7 +212,7 @@ Usage: plextraktsync sync [OPTIONS]
Perform sync between Plex and Trakt
Options:
- --sync [all|movies|tv] Specify what to sync [default: all]
+ --sync [all|movies|shows] Specify what to sync [default: all]
--help Show this message and exit.
```

MODIFY
plextraktsync/commands/sync.py
plextraktsync/commands/sync.py
@@ -41,7 +41,7 @@ def sync_all(walker: Walker, plex: PlexApi, runner: Sync, dry_run: bool):
)
@click.option(
"--sync", "sync_option",
- type=click.Choice(["all", "movies", "tv"], case_sensitive=False),
+ type=click.Choice(["all", "movies", "tv", "shows"], case_sensitive=False),
default="all",
show_default=True, help="Specify what to sync"
)
@@ -88,13 +88,13 @@ def sync(
logger.info(f"Syncing with Plex {CONFIG['PLEX_USERNAME']} and Trakt {CONFIG['TRAKT_USERNAME']}")
movies = sync_option in ["all", "movies"]
- tv = sync_option in ["all", "tv"]
+ shows = sync_option in ["all", "tv", "shows"]
plex = factory.plex_api()
trakt = factory.trakt_api(batch_size=batch_size)
mf = factory.media_factory(batch_size=batch_size)
pb = factory.progressbar(not no_progress_bar)
- wc = WalkConfig(movies=movies, shows=tv)
+ wc = WalkConfig(movies=movies, shows=shows)
w = Walker(plex=plex, trakt=trakt, mf=mf, config=wc, progressbar=pb)
if id:

Add --sync=shows support (--sync=tv is deprecated)