projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[YoutubeDL] Fix multi_video check
[youtube-dl]
/
youtube_dl
/
extractor
/
crunchyroll.py
diff --git
a/youtube_dl/extractor/crunchyroll.py
b/youtube_dl/extractor/crunchyroll.py
index cc612d08ee469ee1cb3cedc074ac132c20e983d9..fe1324fe3cc047b87e605d2724e3bab015b3ed28 100644
(file)
--- a/
youtube_dl/extractor/crunchyroll.py
+++ b/
youtube_dl/extractor/crunchyroll.py
@@
-17,7
+17,6
@@
from ..utils import (
bytes_to_intlist,
intlist_to_bytes,
unified_strdate,
bytes_to_intlist,
intlist_to_bytes,
unified_strdate,
- clean_html,
urlencode_postdata,
)
from ..aes import (
urlencode_postdata,
)
from ..aes import (
@@
-265,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 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:
if sub_format == 'ass':
subtitles[lang_code] = self._convert_subtitles_to_ass(sub_root)
else: