From 6899f2fe9ed2347255f216cfcfc954dd716e5e14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Wed, 10 Sep 2014 19:13:22 +0700 Subject: [PATCH] [hostingbulk] Simplify --- youtube_dl/extractor/hostingbulk.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/youtube_dl/extractor/hostingbulk.py b/youtube_dl/extractor/hostingbulk.py index a07dd4962..8e812b669 100644 --- a/youtube_dl/extractor/hostingbulk.py +++ b/youtube_dl/extractor/hostingbulk.py @@ -57,17 +57,13 @@ class HostingBulkIE(InfoExtractor): thumbnail = self._search_regex( r'', webpage, 'rand') - fields = { - 'id': video_id, - 'method_free': '', - 'method_premium': '', - 'op': 'download2', - 'rand': rand, - 'referer': '', - } + fields = dict(re.findall(r'''(?x)