mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix: adding root dirs
This commit is contained in:
@@ -79,7 +79,9 @@ yarn dev
|
||||
|
||||
You can see the client at http://localhost:5173.
|
||||
|
||||
> The client is hardcoded to hook into the server on port `1980` (to allow the another server instance to be running on the default port). You can follow the instructions above to set up the server in that port, or you can change the port in `swingmusic-client/config.ts`. Don't forget to change it back when in the PR.
|
||||
> The client is hardcoded to hook into the server on port `1980` (to allow the another server instance to be running on the default port).
|
||||
>
|
||||
> You can follow the instructions above to set up the server in that port, or you can change the port in `swingmusic-client/config.ts`. Don't forget to change it back when in the PR.
|
||||
|
||||
## Where can I go for help?
|
||||
|
||||
|
||||
@@ -183,6 +183,6 @@ jobs:
|
||||
tags: ghcr.io/${{github.repository}}:${{format('v{0}', inputs.tag)}}, ${{env.LATEST_TAG}}
|
||||
labels: org.opencontainers.image.title=Docker
|
||||
build-args: |
|
||||
client_tag=v${{inputs.tag}}
|
||||
app_version=${{inputs.tag}}
|
||||
env:
|
||||
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}
|
||||
|
||||
@@ -19,7 +19,15 @@ Swing Music is a beautiful, self-hosted music player for your local audio files.
|
||||
|
||||
Swing Music is available as pre-compiled binaries for Windows and Linux. Just download the latest release from the [downloads page](https://swingmusic.vercel.app/downloads) and launch it.
|
||||
|
||||
For Linux, you need to make the file executable first.
|
||||
[FFmpeg](https://ffmpeg.org/) is needed for the audio silence skip feature, so you need to install it first. On windows, you can follows [this tutorial](https://phoenixnap.com/kb/ffmpeg-windows) to install FFmpeg.
|
||||
|
||||
On Linux, you can install FFmpeg using:
|
||||
|
||||
```sh
|
||||
sudo apt-get install ffmpeg libavcodec-extra -y
|
||||
```
|
||||
|
||||
Then make the file executable first.
|
||||
|
||||
```bash
|
||||
chmod a+x ./swingmusic
|
||||
@@ -82,8 +90,7 @@ services:
|
||||
|
||||
Swing Music is looking for contributors. If you're interested, please join us at the [Swing Music Community](https://t.me/+9n61PFcgKhozZDE0) group on Telegram. For more information, take a look at https://github.com/swing-opensource/swingmusic/issues/186.
|
||||
|
||||
[Contributing Guidelines](.github/contributing.md).
|
||||
|
||||
[**CONTRIBUTING GUIDELINES**](.github/contributing.md).
|
||||
|
||||
### License
|
||||
|
||||
|
||||
+6
-3
@@ -47,6 +47,9 @@ def get_folder_tree(body: FolderTree):
|
||||
pass
|
||||
|
||||
if req_dir == "$home":
|
||||
if len(root_dirs) == 1:
|
||||
req_dir = root_dirs[0]
|
||||
else:
|
||||
folders = get_folders(root_dirs)
|
||||
|
||||
return {
|
||||
@@ -102,7 +105,7 @@ class DirBrowserBody(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
@api.post("/folder/dir-browser")
|
||||
@api.post("/dir-browser")
|
||||
def list_folders(body: DirBrowserBody):
|
||||
"""
|
||||
List folders
|
||||
@@ -145,7 +148,7 @@ class FolderOpenInFileManagerQuery(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
@api.get("/folder/show-in-files")
|
||||
@api.get("/show-in-files")
|
||||
def open_in_file_manager(query: FolderOpenInFileManagerQuery):
|
||||
"""
|
||||
Open in file manager
|
||||
@@ -163,7 +166,7 @@ class GetTracksInPathQuery(BaseModel):
|
||||
)
|
||||
|
||||
|
||||
@api.get("/folder/tracks/all")
|
||||
@api.get("/tracks/all")
|
||||
def get_tracks_in_path(query: GetTracksInPathQuery):
|
||||
"""
|
||||
Get tracks in path
|
||||
|
||||
Reference in New Issue
Block a user