diff --git a/main.py b/main.py index 462ab78..0336139 100755 --- a/main.py +++ b/main.py @@ -20,7 +20,7 @@ def _truncate_title(title: str, length: int = 30) -> str: return title[:length] if len(title) <= length: return title - return title[:length-3] + (title[length:] and '...') + return title[:length-3].strip() + (title[length:] and '...') def get_yt_creds():