aboutsummaryrefslogtreecommitdiff
path: root/code/utils/media_api_key.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/utils/media_api_key.py')
-rw-r--r--code/utils/media_api_key.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/utils/media_api_key.py b/code/utils/media_api_key.py
index 8479010..0184c1f 100644
--- a/code/utils/media_api_key.py
+++ b/code/utils/media_api_key.py
@@ -19,11 +19,14 @@ def get_media_api_key():
for js_file in js_files:
response = requests.get(f"{url}/assets/{js_file}")
# "(?<token>(ey[\w-]+)\.([\w-]+)\.([\w-]+))" - Credit to https://github.com/topi314/LavaSrc
- match = re.search(r'"(?P<token>ey[\w-]+\.[\w-]+\.[\w-]+)"', response.text)
+ match = re.search(
+ r'"(?P<token>ey[\w-]+\.[\w-]+\.[\w-]+)"', response.text
+ )
if match:
return match.group(1)
LOG.error(
- "Failed to find media API key. Apple Music support will not work until a key is found or manually set."
+ "Failed to find media API key. Apple Music support will not work until"
+ " a key is found or manually set."
)
return None