|
@@ -45,7 +45,7 @@ def get_mode(url):
|
|
return 'track'
|
|
return 'track'
|
|
if path.startswith('/album/'):
|
|
if path.startswith('/album/'):
|
|
return 'album'
|
|
return 'album'
|
|
- if path == '/':
|
|
|
|
|
|
+ if path == '/' or path == '':
|
|
return 'artist'
|
|
return 'artist'
|
|
raise ValueError('unsupported url: "{}"'.format(path))
|
|
raise ValueError('unsupported url: "{}"'.format(path))
|
|
|
|
|