sane-sync-music: limit jobs to just 1 by default

This commit is contained in:
2024-07-13 08:39:44 +00:00
parent 924a6c812c
commit aa3115d2ca

View File

@@ -384,7 +384,7 @@ def main() -> None:
parser.add_argument("dest", help="destination directory")
parser.add_argument("--compress", action='store_true', help="compress audio files (to mp3)")
parser.add_argument("--compat", action='store_true', help="convert poorly supported file formats to better-supported formats (e.g. avoid wma)")
parser.add_argument("--jobs", help="number of cores to compress music with (default: all CPU cores)", default=None, type=int)
parser.add_argument("--jobs", help="number of cores to compress music with. N.B.: some remote filesystems (e.g. curlftpfs) suffer degraded perf when multithreading!", default=1, type=int)
parser.add_argument("--dry-run", action='store_true', help="don't actually run any commands")
parser.add_argument("--verbose", action='store_true', help="more logging")
parser.add_argument("--quiet", action='store_true', help="less logging")
@@ -404,7 +404,7 @@ def main() -> None:
compat=args.compat,
force_copy=args.force_copy,
dry_run=args.dry_run,
jobs=args.jobs,
jobs=args.jobs if args.jobs else None,
)
if __name__ == '__main__':