diff options
author | Florrie <towerofnix@gmail.com> | 2019-03-23 19:25:04 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-03-23 19:25:04 -0300 |
commit | e03b677b1d92ee7a0b139c23cb8076c44770e903 (patch) | |
tree | ac222c206a9b9efebc455de3900099fb21c79f07 /native-app | |
parent | 907ae79780da5b691f835b108663af4de8b1d197 (diff) |
Support sanitized names properly
Diffstat (limited to 'native-app')
-rwxr-xr-x | native-app/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native-app/index.js b/native-app/index.js index f6936e3..5e5e316 100755 --- a/native-app/index.js +++ b/native-app/index.js @@ -117,7 +117,7 @@ loadTracks().then(async () => { } for (const [key, track] of Object.entries(tracks)) { - const mode = targetMode.find(m => m.track === key) || {volume: 0}; + const mode = targetMode.find(m => sanitizeFilename(m.track) === key) || {volume: 0}; track.setVolume(track.volume + 0.02 * (mode.volume - track.volume)); } }, 20); |