Skip to content

Commit

Permalink
Sleep 2 seconds instead of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedie committed May 9, 2023
1 parent 43d2899 commit 9c685ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
url="https://github.com/sinedie/SRTranslator",
version="0.2.6",
version="0.2.7",
author="EAR",
author_email="[email protected]",
license="FREE",
Expand Down
2 changes: 1 addition & 1 deletion srtranslator/translators/deepl_scrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def translate(self, text: str, source_language: str, destination_language: str):
translation = self.input_destination_language.value

if self._is_translated(clean_text, translation):
time.sleep(1)
time.sleep(2)
translation = self.input_destination_language.value
return translation.replace("@[.]@", "[...]")
time.sleep(1)
Expand Down

0 comments on commit 9c685ab

Please sign in to comment.