[generic] Respect the encoding in manifest

pull/311/head
pukkandan 4 years ago
parent 53ed7066ab
commit 61241abbb0
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -2508,6 +2508,9 @@ class GenericIE(InfoExtractor):
# Is it an RSS feed, a SMIL file, an XSPF playlist or a MPD manifest?
try:
try:
doc = compat_etree_fromstring(webpage)
except compat_xml_parse_error:
doc = compat_etree_fromstring(webpage.encode('utf-8'))
if doc.tag == 'rss':
return self._extract_rss(url, video_id, doc)

Loading…
Cancel
Save