Deprecate --batch-delay for sync command
MODIFY
plextraktsync/cli.py
plextraktsync/cli.py
@@ -194,8 +194,6 @@ def plex_login():
"--batch-delay",
"batch_delay",
type=int,
- default=5,
- show_default=True,
help="Time in seconds between each collection batch submit to trakt",
)
@click.option(

MODIFY
plextraktsync/commands/sync.py
plextraktsync/commands/sync.py
@@ -29,7 +29,6 @@ def sync(
shows = sync_option in ["all", "tv", "shows"]
config = factory.run_config.update(
- batch_delay=batch_delay,
dry_run=dry_run,
)
if server:
@@ -38,6 +37,11 @@ def sync(
if no_progress_bar:
logger.warning('"plextraktsync sync --no-progress-bar" is deprecated use "plextraktsync --no-progressbar sync"')
config.update(progress=False)
+ if batch_delay:
+ logger.warning(
+ '"plextraktsync sync --batch-delay=<number>" is deprecated use "plextraktsync ---batch-delay=<number> sync"'
+ )
+ config.update(batch_delay=batch_delay)
ensure_login()
wc = factory.walk_config.update(movies=movies, shows=shows)

Deprecate --batch-delay for sync command