feat(config): add workers field and --workers CLI flag
Add parallel download worker-count configuration through all three config layers: Config dataclass (workers=3 default), YAML parsing with InvalidWorkersError validation, and -w/--workers CLI flag with three-layer resolution (CLI > config > hardcoded 3). 6 new tests. Closes #12
This commit is contained in:
11 files changed
+329
-2
No files matched your search
+1
@@ -3,3 +3,4 @@ librofm:
|
||||
output_dir: /tmp/books
|
||||
download_extras: false
|
||||
download_covers: false
|
||||
workers: 5
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
librofm:
|
||||
format: m4b_mp3_fallback
|
||||
output_dir: ./audiobooks
|
||||
workers: -1
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
librofm:
|
||||
format: m4b_mp3_fallback
|
||||
output_dir: ./audiobooks
|
||||
workers: 0
|
||||
Reference in new issue
Block a user