Explorar o código

URLs with no trailing slash are accepted

boyska %!s(int64=6) %!d(string=hai) anos
pai
achega
e70f0d22ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bandcavall/main.py

+ 1 - 1
bandcavall/main.py

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