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:
|
def fetch_source(cls, row: dict) -> str | None:
|
||||||
super().fetch_source(row)
|
super().fetch_source(row)
|
||||||
|
|
||||||
title = row['title']
|
title = row.title
|
||||||
artists = row['artists']
|
artists = row.get_artist_names()
|
||||||
|
|
||||||
# trying to get a download link via the autocomplete api
|
# trying to get a download link via the autocomplete api
|
||||||
for artist in artists:
|
for artist in artists:
|
||||||
|
@ -17,7 +17,9 @@ class Song:
|
|||||||
def __init__(self, json_response) -> None:
|
def __init__(self, json_response) -> None:
|
||||||
self.json_data = json_response
|
self.json_data = json_response
|
||||||
|
|
||||||
|
self.title = self.json_data['title']
|
||||||
self.artists = [Artist(a) for a in self.json_data['artists']]
|
self.artists = [Artist(a) for a in self.json_data['artists']]
|
||||||
|
|
||||||
self.sources = []
|
self.sources = []
|
||||||
for src in self.json_data['source']:
|
for src in self.json_data['source']:
|
||||||
if src['src'] is None:
|
if src['src'] is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user