Commit Briefs

Omar Polo

web: detect EOF

after the ev/bufio update amused-web could spin since it didn't detect the EOF.


Omar Polo

bring in newer ev and bufio from telescope

merge our local changes to bufio though.


Omar Polo

convert to imsg_get_type()



Omar Polo

rename ibuf arguments to imsgbuf

ibuf is just too confusing since there is also the 'struct ibuf'.


Omar Polo

honour TMPDIR

This makes using amused a bit nicer on termux where /tmp/ can't be written (or doesn't even exists.) amused still uses /tmp/ if TMPDIR is not specified.


Omar Polo

amused-web: typo in error message



Omar Polo

amused-web: parse POST data in bufio' rbuf

Add a proper upper limit (4096 seems enough for now) and safely NUL-terminate the rbuf. The idea is to later drop the clt->buf static buffer and allocate it on demand only when we need to do (http) chunking.


Omar Polo

drop useless logging



Omar Polo

amused-web: make the filtering work

Generate the HTML for the filter input in js (it's useless to have it there otherwise) and actually filter the entries. It's a basic case insensitive match, but it's a start. To do so, add dispatch event type X: to mark the end of the playlist so js can replay the filtering.



Omar Polo

amused-web: drop -t


Omar Polo

amused-web: playlist_swap misuse