projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mfs] Modernize
[youtube-dl]
/
youtube_dl
/
extractor
/
empflix.py
diff --git
a/youtube_dl/extractor/empflix.py
b/youtube_dl/extractor/empflix.py
index e6952588fbdfa08167935fc2b1c0381804328943..1c498d8c8fa0cc95a2963a19384201a42ec2fa4b 100644
(file)
--- a/
youtube_dl/extractor/empflix.py
+++ b/
youtube_dl/extractor/empflix.py
@@
-3,6
+3,7
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
+from ..utils import fix_xml_ampersands
class EmpflixIE(InfoExtractor):
class EmpflixIE(InfoExtractor):
@@
-36,7
+37,8
@@
class EmpflixIE(InfoExtractor):
webpage, 'flashvars.config')
cfg_xml = self._download_xml(
webpage, 'flashvars.config')
cfg_xml = self._download_xml(
- cfg_url, video_id, note='Downloading metadata')
+ cfg_url, video_id, note='Downloading metadata',
+ transform_source=fix_xml_ampersands)
formats = [
{
formats = [
{
@@
-44,11
+46,13
@@
class EmpflixIE(InfoExtractor):
'format_id': item.find('res').text,
} for item in cfg_xml.findall('./quality/item')
]
'format_id': item.find('res').text,
} for item in cfg_xml.findall('./quality/item')
]
+ thumbnail = cfg_xml.find('./startThumb').text
return {
'id': video_id,
'title': video_title,
'description': video_description,
return {
'id': video_id,
'title': video_title,
'description': video_description,
+ 'thumbnail': thumbnail,
'formats': formats,
'age_limit': age_limit,
}
'formats': formats,
'age_limit': age_limit,
}