tweaking docs

This commit is contained in:
evilchili
2022-12-31 12:44:59 -08:00
parent f055511fe6
commit 5985aef79d
6 changed files with 15 additions and 12 deletions
+4 -2
View File
@@ -78,8 +78,10 @@ def serve_track(request, track_id, db):
except (NoResultFound, MultipleResultsFound):
return HTTPResponse(status=404, body="Not found")
path = groove.path.media(track['relpath'])
logging.debug(f"Service track {path.name} from {path.parent}")
path = groove.path.transcoded_media(track['relpath'])
if not path.exists():
path = groove.path.media(track['relpath'])
logging.debug(f"Serving track {path.name}")
return static_file(path.name, root=path.parent)