From 056c797523bc05123f04356bb9cf7bcc597e3ef1 Mon Sep 17 00:00:00 2001 From: fnord Date: Wed, 15 Jul 2015 04:22:53 -0500 Subject: [PATCH] dfxp2srt: do not translate '\n's to line breaks, only
and

--- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')