1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-10-31 20:16:17 +00:00
Commit Graph

305 Commits

Author SHA1 Message Date
Andy
84f3a78a42 Merge pull request #89 from dewyatt/master
Add arrow left/right and spacebar controls
2015-09-20 15:53:23 +02:00
Andy
c1b52d819d Merge pull request #84 from hsoft/add-all-songs
Add "Add all" button in the Browse section
2015-09-20 15:52:52 +02:00
Daniel Wyatt
86d2d2ecb4 Add arrow left/right and spacebar controls 2015-09-13 04:38:18 -04:00
Benjamin Häublein
4f138c0986 Save Queue 2015-09-02 19:47:58 +02:00
Nofre
30bb8161b5 code cleared 2015-09-02 19:38:42 +02:00
Nofre
94869bba92 Added a tab to search radio stations from Dirble. Also fixes #85 2015-08-27 16:15:23 +02:00
Virgil Dupras
4e2f300643 Add "Add all" button in the Browse section
It adds all items in the directory. It's equivalent to clicking on "+"
on that same directory we decided to browse.
2015-08-17 17:01:47 -04:00
Ivor Wanders
d3148056fc Improves the add stream dialog user experience.
When the dialog is opened, the text area is focused. When enter is
pressed (and the form is submit) the window now behaves as expected and
adds the stream to the playlist and closes. The text area is now also
cleared once the form is submit, previously the old stream was still
visible when the dialog was opened a second time.
2015-07-16 11:50:54 +02:00
Andy
f2164b382a Merge pull request #81 from hsoft/fix-encoded-uri-addtrack
Fix broken add track action
2015-07-16 11:38:53 +02:00
Virgil Dupras
698f573a65 Fix broken add track action
Fix the bug I've introduced in my PR #78, breaking the add
track/playlist action. We have to decode URIs before sending them back
to our socket!

fixes #80
2015-07-13 14:31:56 -04:00
Andy
7b05dc1010 Merge pull request #78 from hsoft/master
Fix browsing for non-ascii entity URI under Safari
2015-06-24 20:17:05 +02:00
Virgil Dupras
fe44fca184 Fix browsing for non-ascii entity URI under Safari
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.
2015-06-20 22:39:42 -04:00
Kurt Van Dijck
3b72651d7e outputs: fix typo 2015-05-25 18:11:22 +02:00
Andy
51c371bbc3 Merge pull request #73 from jpleau/fix_init
fix webport using the wrong variable in init scripts
2015-05-03 02:20:04 +02:00
Kurt Van Dijck
d125f0a1d3 outputs: show MPD error message on stderr 2015-05-02 14:36:02 +02:00
Jason Pleau
c7f19755bd fix webport using the wrong variable in init scripts 2015-05-01 20:57:58 -04:00
Andrew Karpow
770c32a370 replaced deprecated drone.yml with travis-ci 2015-05-02 01:49:48 +02:00
Andy
8c916e2b74 Merge pull request #72 from jpleau/various_patches
various patches: manpage, remove external js, init scripts
2015-05-02 01:11:05 +02:00
Kurt Van Dijck
c3ddc8318b outputs: clear possible error 2015-05-02 00:07:37 +02:00
Kurt Van Dijck
0c3ded1cf3 outputs: reduce duplicate code 2015-05-02 00:04:04 +02:00
Kurt Van Dijck
66ed2518a2 mpd_client: fix allocation of outputs 2015-05-01 23:33:07 +02:00
Jason Pleau
5abfdfda7b update init script and systemd service file
init script: depend on $remote_fs instead of $local_fs. Reason: /usr can
be mounted a remote filesystem. Also depend on mpd (instead of $mpd,
which doesn't seem to exist.. at least on my system)

Also provide a default config (which should be installed as
/etc/default/ympd)

This commit makes the systemd unit file as well as the init script load
values from this configuration file so the user can change ympd settings
easily when running it as a service.
2015-05-01 17:14:21 -04:00
Jason Pleau
3ef53f3cc2 webpage: remove respond.js
Calling outside resources is a breach of privacy, and prevents the page
from loading correctly if offline.
2015-05-01 17:06:57 -04:00
Jason Pleau
1035264d66 manpage: set section to 1 and update version 2015-05-01 17:06:09 -04:00
Andrew Karpow
ade4ee3808 apply mg_set listening_port only once, fixes #71 2015-05-01 21:05:15 +02:00
Kurt Van Dijck
d344ec05a9 add support for output enable/disable 2015-04-28 11:08:21 +02:00
Andrew Karpow
caddebcec0 fixed memleak in mpd_set_password 2015-04-25 00:39:16 +02:00
Andrew Karpow
4ba3e0b70f removed %m formatstring, works now with openbsd, fixes #68 2015-04-25 00:35:01 +02:00
Andrew Karpow
3701a8510b add libmpdclient header location to gcc-search path, fixes openbsd builds 2015-04-24 23:38:39 +02:00
Andy
2e350f4a65 Merge pull request #67 from jpleau/update_mongoos_56
Update mongoos 56
2015-04-24 21:41:31 +02:00
Jason Pleau
19c6d7eb88 replace mg_iterate_over_connections with a loop with mg_next 2015-04-20 23:11:03 -04:00
Jason Pleau
7061015486 update mongoose to 5.6 2015-04-20 23:05:23 -04:00
Andy
3df5b36b97 Merge pull request #56 from warhog/master
Added ability to add streams
2015-03-19 23:08:15 +01:00
warhog
4d4ff2bdc2 changed order of menu entries 2015-03-06 12:41:26 +01:00
warhog
1c4e89def8 added ability to add streams 2015-03-06 12:40:14 +01:00
Andy
ca40c44dd5 Merge pull request #52 from ajs124/master
Add crossfade support. Not sure about the icon/glyph though
2015-03-03 21:50:49 +01:00
Andy
1268cab3b3 Merge pull request #40 from iwanders/master
Change websocket URL to allow easy incorporation of different backends.
2015-03-03 21:49:46 +01:00
ajs124
3eb12e6ecd Add crossfade support. Not sure about the icon/glyph though 2015-02-17 15:45:26 +01:00
LaClaro
df3ba1c04c Added more columns also to the search 2014-11-20 20:17:16 +01:00
Andrew Karpow
e6e93a08c7 release build now installs assets to prefix
if build with dynamic assets
2014-11-11 21:13:11 +01:00
LaClaro
8b29d44496 Patched files to include more columns in browsing and queue mode 2014-11-11 18:52:05 +01:00
LaClaro
f3aef08a7a Patched files to include more columns in browsing and queue mode 2014-11-11 18:50:21 +01:00
LaClaro
838237d854 Patched files to include more columns in browsing and queue mode 2014-11-11 18:41:39 +01:00
Ivor Wanders
a5a4ac9461 Changes URL used for the websocket.
This change allows easier implementation of different backends because the websocket URL isn't identical to the webpage URL. This does not affect the functionality of the default C backend.
2014-11-03 20:01:05 +01:00
Andy
aeaac3ecc3 Merge pull request #38 from jpleau/jquery
add jquery source file
2014-11-03 19:07:33 +01:00
Andy
b9411a7134 Merge pull request #26 from KAMiKAZOW/patch-1
Create ympd.spec
2014-11-03 03:22:05 +01:00
Andy
9728aae69c Merge pull request #37 from jpleau/fix_mpd_port_argument
ympd.c: add a break statement for the mpd port argument
2014-11-02 13:13:04 +01:00
Jason Pleau
07b6ac7473 add jquery source file
This is to comply with the Debian Free Software Guidelines:
https://www.debian.org/social_contract#guidelines

ympd can still use the minified file, however we need the source files
to be included in the source package.
2014-10-29 18:25:07 -04:00
Jason Pleau
59d971dc1b ympd.c: add a break statement for the mpd port argument
Otherwise, passing -p tried to also bind the http server to MPD's port
(which was already in use by MPD...)
2014-10-28 22:48:08 -04:00
KAMiKAZOW
d4f45558e9 Rename ympd.spec to contrib/ympd.spec 2014-10-29 03:08:59 +01:00