projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d7d76
)
[itv] Extract series metadata
author
Sergey M․
<dstftw@gmail.com>
Sun, 16 Apr 2017 16:19:20 +0000
(23:19 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 16 Apr 2017 16:19:20 +0000
(23:19 +0700)
youtube_dl/extractor/itv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/itv.py
b/youtube_dl/extractor/itv.py
index 7442c24d9adc550245d3c50b3c8ce83b7c6c8104..f3156804d8a072509045563017046dc6d670918e 100644
(file)
--- a/
youtube_dl/extractor/itv.py
+++ b/
youtube_dl/extractor/itv.py
@@
-203,7
+203,8
@@
class ITVIE(InfoExtractor):
'ext': 'ttml' if ext == 'xml' else ext,
})
- return {
+ info = self._search_json_ld(webpage, video_id, default={})
+ info.update({
'id': video_id,
'title': title,
'formats': formats,
@@
-212,4
+213,5
@@
class ITVIE(InfoExtractor):
'episode_number': int_or_none(xpath_text(playlist, 'EpisodeNumber')),
'series': xpath_text(playlist, 'ProgrammeTitle'),
'duartion': parse_duration(xpath_text(playlist, 'Duration')),
- }
+ })
+ return info