From c10ad67e434ecddb32cb743ca27e7a48f3058f4e Mon Sep 17 00:00:00 2001 From: DJDoubleD <34967020+DJDoubleD@users.noreply.github.com> Date: Fri, 2 Jun 2023 13:42:41 +0200 Subject: [PATCH] Fix formatting for consistency --- rip/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rip/utils.py b/rip/utils.py index c97b934..f072ce1 100644 --- a/rip/utils.py +++ b/rip/utils.py @@ -20,10 +20,10 @@ def extract_interpreter_url(url: str) -> str: :type url: str :rtype: str """ - urlMatch = interpreter_artist_id_regex.search(url) - if urlMatch: - return urlMatch.group('artistId') - + url_match = interpreter_artist_id_regex.search(url) + if url_match: + return url_match.group("artistId") + session = gen_threadsafe_session({"User-Agent": AGENT}) r = session.get(url) match = interpreter_artist_regex.search(r.text)