1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-27 17:26:51 +01:00

[pokemon] PEP 8

This commit is contained in:
Sergey M․ 2018-02-08 23:04:20 +07:00
parent 382b8182ce
commit 4fac463d70
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -58,7 +58,7 @@ class PokemonIE(InfoExtractor):
webpage, 'video data element')) webpage, 'video data element'))
video_id = video_data['data-video-id'] video_id = video_data['data-video-id']
title = video_data.get('data-video-title') or self._html_search_meta( title = video_data.get('data-video-title') or self._html_search_meta(
'pkm-title', webpage,' title', default=None) or self._search_regex( 'pkm-title', webpage, ' title', default=None) or self._search_regex(
r'<h1[^>]+\bclass=["\']us-title[^>]+>([^<]+)', webpage, 'title') r'<h1[^>]+\bclass=["\']us-title[^>]+>([^<]+)', webpage, 'title')
return { return {
'_type': 'url_transparent', '_type': 'url_transparent',