diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 942f76d24..68d2f4984 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1865,7 +1865,7 @@ def dfxp2srt(dfxp_data): return out - dfxp = xml.etree.ElementTree.fromstring(dfxp_data.encode('utf-8')) + dfxp = xml.etree.ElementTree.fromstring(dfxp_data.replace('\n','').encode('utf-8')) out = [] paras = dfxp.findall(_x('.//ttml:p')) or dfxp.findall(_x('.//ttaf1:p')) or dfxp.findall('.//p')