Skip to content

Commit

Permalink
Download next book if one fails
Browse files Browse the repository at this point in the history
As mentioned in issue 105, audiobook-dl stops downloading if a book
isn't avaialable for some reason. This commit will change the behavior
to print the error message and continue to the next book.
  • Loading branch information
jo1gi committed May 10, 2024
1 parent c9fa110 commit bbc2e53
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions audiobookdl/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ def main() -> None:
if not urls:
logging.simple_help()
exit()
try:
for url in urls:
for url in urls:
try:
process_url(url, options, config)
except AudiobookDLException as e:
e.print()
if logging.debug_mode:
logging.print_traceback()
exit(1)
except AudiobookDLException as e:
e.print()
if logging.debug_mode:
logging.print_traceback()


def process_url(url: str, options, config: Config):
Expand Down

0 comments on commit bbc2e53

Please sign in to comment.