diff --git a/setup.py b/setup.py index a0e7064..a1b28bc 100644 --- a/setup.py +++ b/setup.py @@ -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.3.0", + version="0.3.2", author="EAR", author_email="sinedie@protonmail.com", license="FREE", diff --git a/srtranslator/translators/deepl_scrap.py b/srtranslator/translators/deepl_scrap.py index 1680dd3..461bc49 100644 --- a/srtranslator/translators/deepl_scrap.py +++ b/srtranslator/translators/deepl_scrap.py @@ -4,6 +4,7 @@ from typing import Optional from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.common.proxy import Proxy +from selenium.webdriver.common.keys import Keys from .base import Translator, TimeOutException from .selenium_utils import ( @@ -137,7 +138,7 @@ def translate(self, text: str, source_language: str, destination_language: str): clean_text = text.replace("[...]", "@[.]@") - self.input_lang_from.write((clean_text)) + self.input_lang_from.write((clean_text.replace("\n", Keys.ENTER))) # Maximun number of iterations 60 seconds for _ in range(60):