Don't pass song ID when song download state changes
This commit is contained in:
@@ -158,6 +158,8 @@ class Server:
|
||||
|
||||
def do_download(self, url: str, **params) -> bytes:
|
||||
download = self._get(url, **params)
|
||||
if not download:
|
||||
raise Exception('Download failed')
|
||||
if 'json' in download.headers.get('Content-Type'):
|
||||
# TODO (#122): make better
|
||||
raise Exception("Didn't expect JSON.")
|
||||
|
Reference in New Issue
Block a user