Browse Source

[crunchyroll] Remove NOP code (#2782)

Philipp Hagemeister 11 năm trước cách đây
mục cha
commit
0cc8888038
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      youtube_dl/extractor/crunchyroll.py

+ 0 - 2
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: