aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/crunchyroll.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-15 00:34:03 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-15 00:34:03 +0100
commit0cc8888038b31c74c4b3dfa14f01cefc52c21335 (patch)
treebeb739d43003a85caab1f8bec3c2f075974ede63 /youtube_dl/extractor/crunchyroll.py
parentc735450e079d7b53ffe39ba76de472b797b1c4d8 (diff)
[crunchyroll] Remove NOP code (#2782)
Diffstat (limited to 'youtube_dl/extractor/crunchyroll.py')
-rw-r--r--youtube_dl/extractor/crunchyroll.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 0bd0eccba..fe1324fe3 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -264,8 +264,6 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
if not lang_code:
continue
sub_root = xml.etree.ElementTree.fromstring(subtitle)
- if not sub_root:
- subtitles[lang_code] = ''
if sub_format == 'ass':
subtitles[lang_code] = self._convert_subtitles_to_ass(sub_root)
else: