continued
This commit is contained in:
parent
889423518e
commit
fe1c849852
@ -27,8 +27,8 @@ class Musify(AudioSource):
|
||||
def fetch_source(cls, row: dict) -> str | None:
|
||||
super().fetch_source(row)
|
||||
|
||||
title = row['title']
|
||||
artists = row['artists']
|
||||
title = row.title
|
||||
artists = row.get_artist_names()
|
||||
|
||||
# trying to get a download link via the autocomplete api
|
||||
for artist in artists:
|
||||
|
@ -17,7 +17,9 @@ class Song:
|
||||
def __init__(self, json_response) -> None:
|
||||
self.json_data = json_response
|
||||
|
||||
self.title = self.json_data['title']
|
||||
self.artists = [Artist(a) for a in self.json_data['artists']]
|
||||
|
||||
self.sources = []
|
||||
for src in self.json_data['source']:
|
||||
if src['src'] is None:
|
||||
|
Loading…
Reference in New Issue
Block a user