Skip to content

Commit f78726a

Browse files
committed
feat: add option to preserve filenames as is in the play queue (#93)
1 parent 8c0b9a8 commit f78726a

File tree

5 files changed

+80
-61
lines changed

5 files changed

+80
-61
lines changed

docs/server.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ The storage is also tied to the server **address and port**, so if any of those
1818

1919
A **config.yaml** file in the same directory as audioMotion's _index.html_ allows you to configure some server options.
2020

21-
```yaml
22-
defaultAccessMode: local
23-
enableLocalAccess: true
24-
frontPanel: open
25-
```
26-
27-
| option | values (default in bold) | description |
21+
| option | possible values<br>(default in bold) | description |
2822
|--------|--------------------------|-------------|
2923
| **defaultAccessMode** | **`local`** \| `server` | Initial (first run) file access mode - user's device or /music directory on server
30-
| **enableLocalAccess** | **`true`** \| `false` | Whether or not to enable access to local device (*true* allows user to switch between local or server)
24+
| **enableLocalAccess** | **`true`** \| `false` | Whether to enable access to local device (*true* allows user to switch between local or server)
3125
| **frontPanel** | **`open`** \| `close` | Initial state of the Front Panel - behaves like the [collapse/expand front panel button](users-manual.md#collapseexpand-front-panel)
26+
| **preserveFilenames** | `true` \| **`false`** | Whether to preserve filenames as is in the play queue (can also be toggled via [General Settings](users-manual.md#general-settings))
27+
28+
The `config.yaml.example` file included in the `public/` folder can be used as a template.
3229

3330
## URL parameters
3431

public/config.yaml.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ enableLocalAccess: true
99
# Initial state of the Media Panel (“close” expands the analyzer area)
1010
# open | close
1111
frontPanel: open
12+
13+
# Whether to preserve filenames as is in the play queue
14+
# true | false
15+
preserveFilenames: false

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ <h2>Configuration</h2>
626626
<p class="colspan-3"><label><input type="checkbox" id="auto_hide"> Auto-collapse front panel on analyzer hover</label></p>
627627
<p class="colspan-3"><label><input type="checkbox" id="enable_surround"> Enable 5.1 surround audio output (experimental)</label></p>
628628
<p class="colspan-3"><label><input type="checkbox" id="invert_volume"> Invert scroll direction for Volume control</label></p>
629+
<p class="colspan-3"><label><input type="checkbox" id="preserve_filenames"> Preserve filenames as is in the play queue</label></p>
629630

630631
<p class="colspan-3"><label><input type="checkbox" id="save_dir"> Remember last music folder</label></p>
631632
<p class="colspan-3"><label><input type="checkbox" id="save_queue"> Remember play queue contents</label></p>

0 commit comments

Comments
 (0)