about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-16 23:19:20 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-16 23:19:20 +0700
commit751c89a27d68c54375e96789cc90d4c8a3ce3dbc (patch)
tree88bbbdf9c3919b7ae51023937315d6870649d7f4
parentc2d7d76efd37c16d01100635f308f03deb9c04aa (diff)
downloadyoutube-dl-751c89a27d68c54375e96789cc90d4c8a3ce3dbc.tar.gz
youtube-dl-751c89a27d68c54375e96789cc90d4c8a3ce3dbc.tar.xz
youtube-dl-751c89a27d68c54375e96789cc90d4c8a3ce3dbc.zip
[itv] Extract series metadata
-rw-r--r--youtube_dl/extractor/itv.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/itv.py b/youtube_dl/extractor/itv.py
index 7442c24d9..f3156804d 100644
--- 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