aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/abc.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-06-12 20:25:50 +0700
committerSergey M․ <dstftw@gmail.com>2018-06-12 20:25:50 +0700
commit9aca7fe6a3551df6379079f570e5a8bdf517c670 (patch)
treef6a22f18a388967215aea1f9e10535f4a069ec15 /youtube_dl/extractor/abc.py
parente0671819e71744b6a9a32fc3f4d5fbc8aca8a8f1 (diff)
[abc:iview] Extract more series metadata
Diffstat (limited to 'youtube_dl/extractor/abc.py')
-rw-r--r--youtube_dl/extractor/abc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/abc.py b/youtube_dl/extractor/abc.py
index 266d76481..4ac323bf6 100644
--- a/youtube_dl/extractor/abc.py
+++ b/youtube_dl/extractor/abc.py
@@ -181,6 +181,11 @@ class ABCIViewIE(InfoExtractor):
'timestamp': parse_iso8601(video_params.get('pubDate'), ' '),
'series': unescapeHTML(video_params.get('seriesTitle')),
'series_id': video_params.get('seriesHouseNumber') or video_id[:7],
+ 'season_number': int_or_none(self._search_regex(
+ r'\bSeries\s+(\d+)\b', title, 'season number', default=None)),
+ 'episode_number': int_or_none(self._search_regex(
+ r'\bEp\s+(\d+)\b', title, 'episode number', default=None)),
+ 'episode_id': house_number,
'uploader_id': video_params.get('channel'),
'formats': formats,
'subtitles': subtitles,