From 7f0a28e925564b150e7c8b1729bb953cb7bf2af2 Mon Sep 17 00:00:00 2001 From: Chris Putnam Date: Fri, 22 Jan 2021 00:54:47 -0600 Subject: [PATCH] code style fixes --- youtube_dl/extractor/patreon.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/youtube_dl/extractor/patreon.py b/youtube_dl/extractor/patreon.py index 8b5e61c52..19ec3eab7 100644 --- a/youtube_dl/extractor/patreon.py +++ b/youtube_dl/extractor/patreon.py @@ -16,6 +16,7 @@ from ..utils import ( import json import re + class PatreonIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?patreon\.com/(?:creation\?hid=|posts/(?:[\w-]+-)?)(?P\d+)' _TESTS = [{ @@ -150,16 +151,16 @@ class PatreonIE(InfoExtractor): if not info.get('url'): post_file = attributes['post_file'] if post_file.get('name') == 'video': - # single video embed - info.update({ - 'url': post_file['url'] - }) + # single video embed + info.update({ + 'url': post_file['url'] + }) else: - # video is attached as a file - ext = determine_ext(post_file.get('name')) - if ext in KNOWN_EXTENSIONS: - info.update({ - 'ext': ext, - 'url': post_file['url'], - }) + # video is attached as a file + ext = determine_ext(post_file.get('name')) + if ext in KNOWN_EXTENSIONS: + info.update({ + 'ext': ext, + 'url': post_file['url'], + }) return info