aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/escapist.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-28 20:52:52 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-28 20:52:52 +0100
commit8237bec4f05d6930146a7f0b087ae1e259917799 (patch)
tree59b371dd4d06d140be9ba0e7f02dddb0cc9e6b0e /youtube_dl/extractor/escapist.py
parent29cad7ad130c2e093c06d269c3b222e33adc218f (diff)
[escapist] Extract duration
Diffstat (limited to 'youtube_dl/extractor/escapist.py')
-rw-r--r--youtube_dl/extractor/escapist.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/escapist.py b/youtube_dl/extractor/escapist.py
index 80e9084f4..e47f3e27a 100644
--- a/youtube_dl/extractor/escapist.py
+++ b/youtube_dl/extractor/escapist.py
@@ -8,6 +8,7 @@ from ..compat import (
from ..utils import (
ExtractorError,
js_to_json,
+ parse_duration,
)
@@ -25,6 +26,7 @@ class EscapistIE(InfoExtractor):
'uploader': 'The Escapist Presents',
'title': "Breaking Down Baldur's Gate",
'thumbnail': 're:^https?://.*\.jpg$',
+ 'duration': 264,
}
}
@@ -41,6 +43,7 @@ class EscapistIE(InfoExtractor):
r"<h1\s+class='headline'>(.*?)</a>",
webpage, 'uploader', fatal=False)
description = self._html_search_meta('description', webpage)
+ duration = parse_duration(self._html_search_meta('duration', webpage))
raw_title = self._html_search_meta('title', webpage, fatal=True)
title = raw_title.partition(' : ')[2]
@@ -105,6 +108,7 @@ class EscapistIE(InfoExtractor):
'title': title,
'thumbnail': self._og_search_thumbnail(webpage),
'description': description,
+ 'duration': duration,
}
if self._downloader.params.get('include_ads') and ad_formats: