diff --git a/deepl/deepl.py b/deepl/deepl.py index 909f64b..1304dda 100644 --- a/deepl/deepl.py +++ b/deepl/deepl.py @@ -221,7 +221,7 @@ async def __translate(self, script: str) -> str: t = document.querySelector( 'd-textarea[aria-labelledby=translation-target-heading]', )?.children[0]?.children[{line_index}]?.innerText ?? ''; - return t.length > 0 && !t.startsWith('[...]'); + return t.length > 0 && !t.includes('[...]'); }} """, )