Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with some characters in title #2

Open
Lockszmith-GH opened this issue Nov 23, 2021 · 1 comment
Open

Problem with some characters in title #2

Lockszmith-GH opened this issue Nov 23, 2021 · 1 comment

Comments

@Lockszmith-GH
Copy link

I got this error:

Traceback (most recent call last):
  File "D:\_\bin\Web-to-epub\epub_converter.py", line 199, in <module>
    chapter_title = f.clean('raw-' + file_name + '.html', 'clean-'
  File "D:\_\bin\Web-to-epub\functions.py", line 320, in clean
    chapter, chapter_title = get_chapter_content(file_name_in, info,
  File "D:\_\bin\Web-to-epub\functions.py", line 228, in get_chapter_content
    with open(debug_folder + '\\' + chapter_title + '.html', 'w',
FileNotFoundError: [Errno 2] No such file or directory: '_debug About — Godot Engine (stable) documentation in English\\I/O — Godot Engine (stable) documentation in English.html'

I believe the issue to be related to the '/' in the title.

You're probably saving each page with the title, and the '/' isn't a valid filename character.

The link it's failing on is:

https://docs.godotengine.org/en/stable/tutorials/io/index.html
@Lockszmith-GH
Copy link
Author

I already know that the following characters in titles create issues:
\,/,:,*,?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant