genius - increase timeouts, radio_util- webhook bugfix
This commit is contained in:
parent
afb680404c
commit
f8cb2a4bea
@ -27,7 +27,7 @@ class Genius:
|
|||||||
self.genius_url: str = private.GENIUS_URL
|
self.genius_url: str = private.GENIUS_URL
|
||||||
self.genius_search_url: str = f"{self.genius_url}api/search/song?q="
|
self.genius_search_url: str = f"{self.genius_url}api/search/song?q="
|
||||||
self.headers: dict = common.SCRAPE_HEADERS
|
self.headers: dict = common.SCRAPE_HEADERS
|
||||||
self.timeout = ClientTimeout(connect=3, sock_read=5)
|
self.timeout = ClientTimeout(connect=5, sock_read=7)
|
||||||
self.datautils = utils.DataUtils()
|
self.datautils = utils.DataUtils()
|
||||||
self.matcher = utils.TrackMatcher()
|
self.matcher = utils.TrackMatcher()
|
||||||
self.cache = cache.Cache()
|
self.cache = cache.Cache()
|
||||||
|
@ -578,7 +578,9 @@ class RadioUtil:
|
|||||||
{
|
{
|
||||||
"name": "Album",
|
"name": "Album",
|
||||||
"value": (
|
"value": (
|
||||||
track["album"] if track["album"] else "Unknown"
|
track["album"]
|
||||||
|
if "album" in track.keys()
|
||||||
|
else "Unknown"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user