Fix formatting for consistency

This commit is contained in:
DJDoubleD 2023-06-02 13:42:41 +02:00
parent c9e1c22ee1
commit c10ad67e43
1 changed files with 4 additions and 4 deletions

View File

@ -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)