mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
Formatting of code according to convention
This commit is contained in:
parent
c55f7f1f9c
commit
58be8f1966
@ -3,21 +3,15 @@ from __future__ import unicode_literals
|
||||
from .common import InfoExtractor
|
||||
|
||||
|
||||
|
||||
|
||||
class MetrotvnewsIE(InfoExtractor):
|
||||
|
||||
_VALID_URL = r'https:\/\/www.metrotvnews\.com\/play\/(?P<id>\S+)-\S+'
|
||||
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
||||
video_id = self._match_id(url)
|
||||
|
||||
webpage = self._download_webpage(
|
||||
url, video_id
|
||||
)
|
||||
|
||||
title = self._html_search_regex(r'<title>(.+) - www.metrotvnews.com<\/title>', webpage, 'title')
|
||||
|
||||
download_url = self._html_search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user