]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/webvtt.py
[extractor/youtube] Subtitles cannot be translated to `und`
[yt-dlp.git] / yt_dlp / webvtt.py
index 1138865ba3c9ac04e012de522eb4656ec93dd53f..dd72982778c275688398644794f303f538ea332a 100644 (file)
@@ -93,7 +93,7 @@ def __init__(self, parser):
     ([0-9]{3})?
 ''')
 _REGEX_EOF = re.compile(r'\Z')
-_REGEX_NL = re.compile(r'(?:\r\n|[\r\n])')
+_REGEX_NL = re.compile(r'(?:\r\n|[\r\n]|$)')
 _REGEX_BLANK = re.compile(r'(?:\r\n|[\r\n])+')