Skip to content

Commit 74401c9

Browse files
committed
fix: DEEPLのFreeプランでAPIを使うときはエンドポイントが違う問題を修正(チェックボックスにて選択)
1 parent e638088 commit 74401c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,10 @@ def setup_logging(directory):
476476
API_KEY = values['DEEPL_API_KEY']
477477
suffix = "-free" if values['free'] else ""
478478

479-
DEEPL_API_URL = f'https://api.deepl{suffix}.com/v2/translate'
480-
UPLOAD_URL = f"https://api.deepl{suffix}.com/v2/document"
481-
CHECK_STATUS_URL_TEMPLATE = f"https://api.deepl{suffix}.com/v2/document/{{}}"
482-
DOWNLOAD_URL_TEMPLATE = f"https://api.deepl{suffix}.com/v2/document/{{}}/result"
479+
DEEPL_API_URL = f'https://api{suffix}.deepl.com/v2/translate'
480+
UPLOAD_URL = f"https://api{suffix}.deepl.com/v2/document"
481+
CHECK_STATUS_URL_TEMPLATE = f"https://api{suffix}.deepl.com/v2/document/{{}}"
482+
DOWNLOAD_URL_TEMPLATE = f"https://api{suffix}.deepl.com/v2/document/{{}}/result"
483483

484484
try:
485485
if target == select_options[0]:

0 commit comments

Comments
 (0)