aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/adobetv.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-21 14:55:13 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-21 14:55:13 +0100
commit8fb3ac3649ca7df6f328971f58afa84dd9d05cc6 (patch)
treec6523ec060f7c6410aeac064f48a3f28fbb78196 /youtube_dl/extractor/adobetv.py
parent77b2986b5b0246234b72ae9dd78fb40f9d37374f (diff)
PEP8: W503
Diffstat (limited to 'youtube_dl/extractor/adobetv.py')
-rw-r--r--youtube_dl/extractor/adobetv.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/adobetv.py b/youtube_dl/extractor/adobetv.py
index 28e07f8b0..97d128560 100644
--- a/youtube_dl/extractor/adobetv.py
+++ b/youtube_dl/extractor/adobetv.py
@@ -28,7 +28,6 @@ class AdobeTVIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
-
webpage = self._download_webpage(url, video_id)
player = self._parse_json(
@@ -44,8 +43,10 @@ class AdobeTVIE(InfoExtractor):
self._html_search_meta('datepublished', webpage, 'upload date'))
duration = parse_duration(
- self._html_search_meta('duration', webpage, 'duration')
- or self._search_regex(r'Runtime:\s*(\d{2}:\d{2}:\d{2})', webpage, 'duration'))
+ self._html_search_meta('duration', webpage, 'duration') or
+ self._search_regex(
+ r'Runtime:\s*(\d{2}:\d{2}:\d{2})',
+ webpage, 'duration', fatal=False))
view_count = str_to_int(self._search_regex(
r'<div class="views">\s*Views?:\s*([\d,.]+)\s*</div>',