Skip to content

Commit

Permalink
1500 chars instead of 3000. Docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedie committed Jul 12, 2023
1 parent bd1aeba commit e175252
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/deepl_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ python -m srtranslator --translator deepl-api --auth YOUR_API_KEY -i src_lang -o

## Limitations

Change the translator character limit (set in 3000 by default) if use a paid API version. You can translate more than that at once.
Change the translator character limit (set in 1500 by default) if use a paid API version. You can translate more than that at once.
2 changes: 1 addition & 1 deletion docs/deepl_scrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ uk : Ukrainian

## Limitations

DeepL won't let you translate more than 3000 characters at the same time so it will be slow
DeepL won't let you translate more than 1500 characters at the same time so it will be slow
2 changes: 1 addition & 1 deletion srtranslator/translators/deepl_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class DeeplApi(Translator):
max_char = 3000
max_char = 1500

def __init__(self, api_key):
self.translator = deepl.Translator(api_key)
Expand Down

0 comments on commit e175252

Please sign in to comment.