From 70e612882d1093b133d13302dccfba6aa2778474 Mon Sep 17 00:00:00 2001 From: Parker Date: Thu, 31 Oct 2024 00:26:00 -0500 Subject: `black --line-length 79` --- code/utils/media_api_key.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'code/utils/media_api_key.py') 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}") # "(?(ey[\w-]+)\.([\w-]+)\.([\w-]+))" - Credit to https://github.com/topi314/LavaSrc - match = re.search(r'"(?Pey[\w-]+\.[\w-]+\.[\w-]+)"', response.text) + match = re.search( + r'"(?Pey[\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 -- cgit v1.2.3-70-g09d2