mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[doodstream] flake8 compliance
This commit is contained in:
parent
c00c1575b6
commit
92d25998f9
1 changed files with 5 additions and 5 deletions
|
@ -42,18 +42,18 @@ def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
title = self._html_search_meta(['og:title', 'twitter:title'],
|
title = self._html_search_meta(['og:title', 'twitter:title'],
|
||||||
webpage, default=None)
|
webpage, default=None)
|
||||||
thumb = self._html_search_meta(['og:image', 'twitter:image'],
|
thumb = self._html_search_meta(['og:image', 'twitter:image'],
|
||||||
webpage, default=None)
|
webpage, default=None)
|
||||||
token = self._html_search_regex(r'[?&]token=([a-z0-9]+)[&\']', webpage, 'token')
|
token = self._html_search_regex(r'[?&]token=([a-z0-9]+)[&\']', webpage, 'token')
|
||||||
description = self._html_search_meta(
|
description = self._html_search_meta(
|
||||||
['og:description', 'description', 'twitter:description'],
|
['og:description', 'description', 'twitter:description'],
|
||||||
webpage, default=None)
|
webpage, default=None)
|
||||||
auth_url = 'https://dood.to' + self._html_search_regex(
|
auth_url = 'https://dood.to' + self._html_search_regex(
|
||||||
r'(/pass_md5.*?)\'', webpage, 'pass_md5')
|
r'(/pass_md5.*?)\'', webpage, 'pass_md5')
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/66.0',
|
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/66.0',
|
||||||
'referer': url
|
'referer': url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue