mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Fix formatting for consistency
This commit is contained in:
parent
c9e1c22ee1
commit
c10ad67e43
1 changed files with 4 additions and 4 deletions
|
@ -20,10 +20,10 @@ def extract_interpreter_url(url: str) -> str:
|
||||||
:type url: str
|
:type url: str
|
||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
urlMatch = interpreter_artist_id_regex.search(url)
|
url_match = interpreter_artist_id_regex.search(url)
|
||||||
if urlMatch:
|
if url_match:
|
||||||
return urlMatch.group('artistId')
|
return url_match.group("artistId")
|
||||||
|
|
||||||
session = gen_threadsafe_session({"User-Agent": AGENT})
|
session = gen_threadsafe_session({"User-Agent": AGENT})
|
||||||
r = session.get(url)
|
r = session.get(url)
|
||||||
match = interpreter_artist_regex.search(r.text)
|
match = interpreter_artist_regex.search(r.text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue