Commit graph

50 commits

Author SHA1 Message Date
b9be6305f1 add skip route 2025-03-13 23:00:23 +01:00
148d4333e4 format, move /upload 2025-03-13 22:50:06 +01:00
Oha
9e8aa40c96 oops 2025-03-08 00:33:23 +01:00
Oha
879d243617 file uploading 2025-03-08 00:19:56 +01:00
12606b21c0 403 on directory traversal 2025-03-08 00:16:14 +01:00
07a9e759dc fix fix 2025-03-08 00:16:14 +01:00
9cc7c5b875 fix directory traversal hopefully 2025-03-07 23:50:19 +01:00
826086057a FX_PATH 2025-03-05 21:00:56 +01:00
34a599cbc7 consolidate; add route to play sound fx 2025-03-03 20:15:04 +01:00
eb81b1871b ensure no mpv socket exists when mpv is not running 2025-03-03 17:43:37 +01:00
8d9eae07b9 i think this loop is tight and blocks the runtime lol 2025-03-03 17:40:49 +01:00
2f9cea0825 cleanup mpv socket at start 2025-03-03 17:30:30 +01:00
41bc93feb9 timeout for commands 2025-03-03 17:16:28 +01:00
0085fbc999 fix crash if music directory is created in between existence check and mkdir call 2025-03-03 16:11:42 +01:00
e63652b0f7 wow asyncio (fix shit) 2025-03-03 08:26:05 +01:00
ec60817409 add /api/play with filename passed in request body 2025-02-28 20:44:38 +01:00
1c7b90ab3e Move picture to repo
Would be a shame for the link to rot
2025-02-28 19:02:23 +00:00
272d781e7a allow playing urls 2025-02-27 22:33:27 +01:00
2b6ee976fe don't loop actually 2025-02-26 22:45:33 +01:00
76d1004b2f fix volume control 2025-02-26 22:43:53 +01:00
72e8f94143 change mpv arg order; add loop 2025-02-26 22:37:03 +01:00
2a028c0c04 return proper status for nonexistent file 2025-02-26 22:27:31 +01:00
1293a6f7d0 make volume route always available (fixed) 2025-02-26 22:22:59 +01:00
2418657122 Revert "make volume route always available"
This reverts commit 0fdd84f7eb.
2025-02-26 22:16:49 +01:00
8e7eb965ac only try to play files that exist 2025-02-26 22:09:59 +01:00
0fdd84f7eb make volume route always available 2025-02-26 21:57:14 +01:00
4b3b048ac9 add /api/volume 2025-02-26 21:17:54 +01:00
6c0380666e generic 'play file' API route 2025-02-26 21:02:56 +01:00
f870c5107c they're taking the hobbits to isengard 2025-02-26 20:48:27 +01:00
501cb64518 close mpv ipc socket 2025-02-26 18:10:20 +01:00
54640510db rename playback-time to position in /api/nowplaying 2025-02-25 23:09:30 +01:00
a019473647 add status to now-playing 2025-02-25 22:30:59 +01:00
66fca07ed2 listen on all addresses (incl. IPv6) 2025-02-25 22:26:02 +01:00
bc83fa7848 make all responses from /api json 2025-02-25 22:16:13 +01:00
oha
16b8b3fcc4 Update README.md 2025-02-25 22:08:34 +01:00
4ac9e049a7 add now-playing API 2025-02-25 21:54:30 +01:00
cccaa01fd3 remove unused import 2025-02-25 20:51:00 +01:00
d69cc9e31f redirect mpv output to /dev/null 2025-02-25 20:48:59 +01:00
3d149faa42 cleanup after sigkill 2025-02-25 20:48:48 +01:00
86a866b2bf put music path in env-able variable 2025-02-25 19:55:59 +01:00
0bdb5e3f4e fix / 2025-02-25 19:52:48 +01:00
77cc3d29a0 add gitignore 2025-02-25 19:52:11 +01:00
6446027a76 severely clean things up 2025-02-25 19:51:50 +01:00
d98c34fe02 format with ruff 2025-02-25 18:58:34 +01:00
Oha
039ce6aaaf Ungarbagify garbage 2025-02-23 23:18:33 +01:00
Oha
9e6bc5d26e API!! 2025-02-23 21:26:20 +01:00
Oha
bb474a24cb Those files are browseable!! 2025-02-22 22:37:11 +01:00
Oha
174fa3a36f Garbage 2025-02-21 16:56:58 +01:00
Oha
e30fd83a90 GUUUH 2025-02-21 16:52:25 +01:00
Oha
8cbc49454e Nah 2025-02-21 15:18:53 +01:00