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

Add Germany (deutsch) language support #59

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

IrvanFza
Copy link
Contributor

Add support for Deutsch language.

For example, when downloading One Piece with Deutsch language it gives a ValueError: 7 is not a valid Language error:

mloader --chapter-title --chapter-subdir -t 800001

25.03.2024 02:58:44 |   INFO   |  __main__.py   206  | Started export
25.03.2024 02:58:45 |   INFO   |   loader.py    138  | 1/1) Manga: ONE PIECE
25.03.2024 02:58:45 |   INFO   |   loader.py    139  |     Author: Eiichiro Oda
25.03.2024 02:58:45 |   INFO   |   loader.py    150  |     1/6) Chapter #1109: Kapitel 1109: Verhinderung
25.03.2024 02:58:45 |  ERROR   |  __main__.py   223  | Failed to download manga
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/__main__.py", line 215, in main
    loader.download(
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/loader.py", line 189, in download
    self._download(manga_list)
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/loader.py", line 154, in _download
    exporter = self.exporter(
               ^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/exporter.py", line 130, in __init__
    super().__init__(*args, **kwargs)
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/exporter.py", line 37, in __init__
    self._chapter_prefix = self._format_chapter_prefix(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/mloader/exporter.py", line 60, in _format_chapter_prefix
    if Language(language) != Language.eng:
       ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.8/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 1135, in __new__
    raise ve_exc
ValueError: 7 is not a valid Language
25.03.2024 02:58:45 |   INFO   |  __main__.py   224  | SUCCESS

@IrvanFza IrvanFza changed the title Add Deutsch language support Add Germany (deutsch) language support Mar 24, 2024
@hurlenko hurlenko merged commit 26ddb6b into hurlenko:master Mar 25, 2024
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

Successfully merging this pull request may close these issues.

2 participants