From 92d25998f9e13ebcd7b27babaa64c2d90cb8e62e Mon Sep 17 00:00:00 2001 From: sxvghd Date: Tue, 18 Aug 2020 00:12:14 +0200 Subject: [PATCH] [doodstream] flake8 compliance --- youtube_dl/extractor/doodstream.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/doodstream.py b/youtube_dl/extractor/doodstream.py index 32719b054e..2c9ea68984 100644 --- a/youtube_dl/extractor/doodstream.py +++ b/youtube_dl/extractor/doodstream.py @@ -42,18 +42,18 @@ def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - title = self._html_search_meta(['og:title', 'twitter:title'], - webpage, default=None) + title = self._html_search_meta(['og:title', 'twitter:title'], + webpage, default=None) 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') description = self._html_search_meta( - ['og:description', 'description', 'twitter:description'], + ['og:description', 'description', 'twitter:description'], webpage, default=None) auth_url = 'https://dood.to' + self._html_search_regex( r'(/pass_md5.*?)\'', webpage, 'pass_md5') 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 }