mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-22 21:07:18 +00:00
Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS. Updated and somewhat fixed fork.
fe44fca184
Previously, browsing entities with non-ascii characters in their URI under Safari wouldn't work. Directories would be empty, songs wouldn't be added. I haven't tried it, but this behavior seems to be common to Webkit-based browsers, so Chrome would be affected too. This turned out to be because Safari normalizes all unicode strings to NFC, breaking the link with MPD-spewed URIs, which are in NFD. An obvious fix would have been to normalize all URIs to NFD, but unfortunately, Safari doesn't have `str.normalize()`. Adding normalization capabilities to our JS side would have involved introductiing libraries such as `unorm`, which is rather big. We could have done it on the C side, but it involves introducing `icu`, which is far from trivial too. After much fussing around, I stumbled on a simple solution: URI-encode our URI when creating our browser table row. This magically prevents Safari from trying to mess with our unicode form before we get the chance to send it back to our server. |
||
---|---|---|
cmake | ||
contrib | ||
htdocs | ||
src | ||
tools | ||
.travis.yml | ||
CMakeLists.txt | ||
LICENSE | ||
README.md | ||
ympd.1 |
ympd
Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS
Dependencies
- libmpdclient 2: http://www.musicpd.org/libs/libmpdclient/
- cmake 2.6: http://cmake.org/
Unix Build Instructions
- install dependencies, cmake and libmpdclient are available from all major distributions.
- create build directory
cd /path/to/src; mkdir build; cd build
- create makefile
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
- build
make
- install
sudo make install
or just run with./ympd
Run flags
Usage: ./ympd [OPTION]...
-h, --host <host> connect to mpd at host [localhost]
-p, --port <port> connect to mpd at port [6600]
-w, --webport [ip:]<port> listen interface/port for webserver [8080]
-u, --user <username> drop priviliges to user after socket bind
-V, --version get version
--help this help
Copyright
2013-2014 andy@ndyk.de