javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
566 stars 61 forks source link

deepl translate doesn't work on Javinizer Web GUI v2.5.9-1 #312

Closed fumbleone closed 2 years ago

fumbleone commented 2 years ago

Expected Behavior

Description and title should be translated from japanese when I scrape. I have set

"sort.metadata.nfo.translate.field": [
    "Description",
    "Title"
  ]

I double checked my sort.metadata.nfo.translate.deeplapikey

I even downloaded translate_deepl.py to my computer and ran it. It works properly so my API key is not the problem.

Current Behavior

Description and title remains in japanese. googletrans does work properly.

Steps to Reproduce (for bugs)

Your Environment

jvlflame commented 2 years ago

Seems like the requests python module isn't installed with python3 by default on the image. I'll add it to the dockerfile and push a new build.

jvlflame commented 2 years ago

Pushed the new docker images on the existing 2.5.9 / latest tags. You may have to clear your docker cache if it's not pulling the new image.

From my testing it should work now. Thanks for the bug report.

shashibici commented 2 years ago

I have the same issue. Use Javinizer Web GUI v2.5.9-1 on Windows Powershell 7. Is there a fix for windows?

jvlflame commented 2 years ago

I have the same issue. Use Javinizer Web GUI v2.5.9-1 on Windows Powershell 7. Is there a fix for windows?

@shashibici Have you tried sorting via the CLI and seeing what error you receive in the console? I'm guessing it's the same error with the missing requests module, so run pip install requests, restart the gui, and then retry the sort.

shashibici commented 2 years ago

Resolved. https://developers.google.com/admin-sdk/directory/v1/languages The language code must be 'zh' rather than 'zh-CN' Error from deepl translate if using 'zh-CN'

{"message":"\"Value for 'target_lang' not supported.\""}