Skip to content

Books with ? characters #54

@cdlvcdlv

Description

@cdlvcdlv

I had a book which name somehow had '?' characters in it, causing the download to finish with an error in line 142 of main.py.

I fixed it changing line 209 in main.py from

book_name = book['productName'].replace(' ', '_').replace('.', '_').replace(':', '_').replace('/','')
to
book_name = book['productName'].replace(' ', '_').replace('.', '_').replace(':', '_').replace('/','').replace('?','_')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions