aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorDéstin Reed <trox1972@users.noreply.github.com>2016-06-25 19:01:47 +0200
committerSergey M․ <dstftw@gmail.com>2016-07-09 03:23:32 +0700
commit3fee7f636cb63e6cb785b07e4ffea3cc91981525 (patch)
tree2c2191ed13391bdb0d506bf812ce64c23bfd7f56 /youtube_dl/extractor/common.py
parent89e2fff2b7e4aeda92cfc811d395b68d18f2d85d (diff)
downloadyoutube-dl-3fee7f636cb63e6cb785b07e4ffea3cc91981525.tar.xz
[flipagram] Add extractor
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index be2b6ff66..b5fce5de2 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -837,6 +837,13 @@ class InfoExtractor(object):
'title': unescapeHTML(json_ld.get('headline')),
'description': unescapeHTML(json_ld.get('articleBody')),
})
+ elif item_type == 'VideoObject':
+ info.update({
+ 'title': unescapeHTML(json_ld.get('name')),
+ 'description': unescapeHTML(json_ld.get('description')),
+ 'upload_date': unified_strdate(json_ld.get('upload_date')),
+ 'url': unescapeHTML(json_ld.get('contentUrl')),
+ })
return dict((k, v) for k, v in info.items() if v is not None)
@staticmethod