src/syncabook/download_files.py
def _download_synclibrivox_files(librivox_url, output_dir):
    """
    Downloads files from synclibrivox repository for a book with corresponding `librivox_url`.
    If a book is not found in the repository, returns False.
    Otherwise, returns True.
    """
    book_dir = _get_book_dir(librivox_url)
    if book_dir is None:
        return False
    
    print('The books has been found in the synclibrivox repository. Downloading files...')
    book_path = os.path.join(BOOKS_DIR, book_dir)
    _download_github_directory(book_path, relative_to=book_path, output_dir=output_dir)
    print(f'✔ All files have been downloaded and saved to {output_dir}')
    return True

    Downloads files from synclibrivox repository for a book with corresponding `librivox_url`.
    If a book is not found in the repository, returns False.
    Otherwise, returns True.
    
Downloads files from synclibrivox repository for a book with corresponding `librivox_url`.
If a book is not found in the repository, returns False.
Otherwise, returns True.
Downloads files from synclibrivox repository for a book with corresponding ` librivox_url ` . If a book is not found in the repository returns False . Otherwise returns True .
def _download_synclibrivox_files(librivox_url, output_dir):
    book_dir = _get_book_dir(librivox_url)
    if book_dir is None:
        return False
    print('The books has been found in the synclibrivox repository. Downloading files...')
    book_path = os.path.join(BOOKS_DIR, book_dir)
    _download_github_directory(book_path, relative_to=book_path, output_dir=output_dir)
    print(f'✔ All files have been downloaded and saved to {output_dir}')
    return True
def _download_synclibrivox_files ( librivox_url , output_dir ) : book_dir = _get_book_dir ( librivox_url ) if book_dir is None : return False print ( 'The books has been found in the synclibrivox repository. Downloading files...' ) book_path = os . path . join ( BOOKS_DIR , book_dir ) _download_github_directory ( book_path , relative_to = book_path , output_dir = output_dir ) print ( f'✔ All files have been downloaded and saved to {output_dir}') return True
Downloads files from synclibrivox repository for a book with corresponding `librivox_url`.
Downloads files from synclibrivox repository for a book with corresponding ` librivox_url ` .
"""
    Downloads files from synclibrivox repository for a book with corresponding `librivox_url`.
    If a book is not found in the repository, returns False.
    Otherwise, returns True.
    """
librivox_url
output_dir