From 3e60887a2abfd2ec5d812b9f6504e8f68b0519ad Mon Sep 17 00:00:00 2001 From: aapjez Date: Fri, 2 Oct 2020 03:36:36 +0200 Subject: [PATCH] Clean up code --- youtube_dl/extractor/boundhub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/boundhub.py b/youtube_dl/extractor/boundhub.py index 3fa791e47..7e65ca73a 100644 --- a/youtube_dl/extractor/boundhub.py +++ b/youtube_dl/extractor/boundhub.py @@ -23,7 +23,7 @@ class BoundHubIE(InfoExtractor): 'thumbnail': 'https://cnt.boundhub.com/contents/videos_screenshots/205000/205969/preview.mp4.jpg', 'uploader': 'Tamina', 'uploader_id': 39278, - 'uploader_url': 'https://www.boundhub.com/members/39278/', + 'uploader_url': 'https://www.boundhub.com/members/39278/' } } @@ -44,11 +44,11 @@ class BoundHubIE(InfoExtractor): 'url': self._search_regex(r'video_url: [\"\']([^\"\']*)[\"\']', webpage, 'url'), 'description': self._search_regex(r'\s*Description:\s*(.*)<\/em>', webpage, 'description', fatal=False), 'display_id': self._html_search_regex(r'https?://(?:www\.)?boundhub\.com/videos/[0-9]+/([\w-]*)', url, 'display_id', fatal=False), - 'duration': (int(minutes) * 60) + int(seconds), + 'duration': int_or_none((int(minutes) * 60) + int(seconds)), 'ext': self._html_search_regex(r'postfix:\s*[\"\']\.([^\"\']*)[\"\']', webpage, 'ext', fatal=False), 'thumbnail': self._html_search_regex(r'preview_url:\s*[\"\']([^\"\']*)[\"\']', webpage, 'thumbnail', fatal=False), 'uploader': self._search_regex(r'\s*\s*(.*)\s*', webpage, 'uploader', fatal=False), 'uploader_id': int_or_none(self._html_search_regex(r'https?://(?:www\.)?boundhub\.com/members/(\d+)', uploader_url, 'uploader_id', fatal=False)), 'uploader_url': uploader_url, - 'views': int_or_none(self._search_regex(r'\s*Views:\s*([\w ]*)', webpage, 'views_text', fatal=False).replace(' ', '')), + 'views': int_or_none(self._search_regex(r'\s*Views:\s*([\w ]*)', webpage, 'views_text', fatal=False).replace(' ', '')) }