tweaking docs
This commit is contained in:
1 parent
f055511fe6
commit
5985aef79d
6 files changed
+15
-12
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user