misc
This commit is contained in:
@@ -45,8 +45,8 @@ class Genius:
|
||||
Optional[LyricsResult]: The result, if found - None otherwise.
|
||||
"""
|
||||
try:
|
||||
artist: str = artist.strip().lower()
|
||||
song: str = song.strip().lower()
|
||||
artist = artist.strip().lower()
|
||||
song = song.strip().lower()
|
||||
time_start: float = time.time()
|
||||
logging.info("Searching %s - %s on %s", artist, song, self.label)
|
||||
search_term: str = f"{artist}%20{song}"
|
||||
@@ -56,7 +56,6 @@ class Genius:
|
||||
f"{self.genius_search_url}{search_term}",
|
||||
timeout=self.timeout,
|
||||
headers=self.headers,
|
||||
verify_ssl=False,
|
||||
proxy=private.GENIUS_PROXY,
|
||||
) as request:
|
||||
request.raise_for_status()
|
||||
@@ -113,7 +112,6 @@ class Genius:
|
||||
scrape_url,
|
||||
timeout=self.timeout,
|
||||
headers=self.headers,
|
||||
verify_ssl=False,
|
||||
proxy=private.GENIUS_PROXY,
|
||||
) as scrape_request:
|
||||
scrape_request.raise_for_status()
|
||||
|
Reference in New Issue
Block a user