Browse Source

[xhamster] flake8

master
Sergey M․ 9 years ago
parent
commit
c73cdd800f
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/xhamster.py

2
youtube_dl/extractor/xhamster.py

@ -81,7 +81,7 @@ class XHamsterIE(InfoExtractor):
thumbnail = self._search_regex( thumbnail = self._search_regex(
[r'''thumb\s*:\s*(?P<q>["'])(?P<thumbnail>.+?)(?P=q)''', [r'''thumb\s*:\s*(?P<q>["'])(?P<thumbnail>.+?)(?P=q)''',
r'''<video[^>]+poster=(?P<q>["'])(?P<thumbnail>.+?)(?P=q)[^>]*>'''], r'''<video[^>]+poster=(?P<q>["'])(?P<thumbnail>.+?)(?P=q)[^>]*>'''],
webpage, 'thumbnail', fatal=False, group='thumbnail')
webpage, 'thumbnail', fatal=False, group='thumbnail')
duration = parse_duration(self._html_search_regex(r'<span>Runtime:</span> (\d+:\d+)</div>', duration = parse_duration(self._html_search_regex(r'<span>Runtime:</span> (\d+:\d+)</div>',
webpage, 'duration', fatal=False)) webpage, 'duration', fatal=False))

Loading…
Cancel
Save