# for details see: https://tilde.town/~dzwdz/ass/ 2025-05-19 https://git.thebackupbox.net/music/commit/182db29a382af677556b12812ed08af7dd846d0f music-stream -- added a comment, and no long set -e, just set -o 2024-07-15 https://git.thebackupbox.net/music/commit/ec37f702939b2a58519ba918bd815ff7f5f3e8d7 I am stupid. forgot to remove debug prints which made it worse. 2024-07-15 https://git.thebackupbox.net/music/commit/ed6cf2d3543bbafe9ec7ece36018a689542374d0 prevent duplicate id3v2 and id3v1 data from duplicating in output 2024-04-08 https://git.thebackupbox.net/music/commit/bebae5f726b076bf65a5d07dfc7c24dbc9e1fe8e Merge branch 'master' of ssh://git.thebackupbox.net/music 2024-04-08 https://git.thebackupbox.net/music/commit/fafd8aa38e37f3e14647eaad453dce4e65609c61 use a process group ID to kill children and descendents 2023-10-16 https://git.thebackupbox.net/music/commit/d7a05189d6cfd4c920acb84ac3bc9a775f00b960 copyright information added 2022-11-07 https://git.thebackupbox.net/music/commit/143a1d35b98ba7aba00953f42c1f044021811779 music-init now transfers playlist in background, uses music-find, and gives a bit more helpful messages 2022-11-07 https://git.thebackupbox.net/music/commit/9f4dd2a9859c9b47fe1f2e5cca68aa2138f70340 music-fileinfo can now take multiple files as arguments instead of only using the first. 2022-11-07 https://git.thebackupbox.net/music/commit/ae10708fd5874dc559b3282b034eb3db1efe61db music-search now calls out to an external script that will use a locate database instead of find 2022-09-12 https://git.thebackupbox.net/music/commit/7a24669ecdb51486cc13cde38ca14d04c57d04ff removed dumb makefile targets. added lrc-print to the list. 2022-09-12 https://git.thebackupbox.net/music/commit/1d60dae2fe46f18c1532aaeb75e93293f6c89b7b added an icecast client. audio to stdout and metadata to stderr. still testing. 2022-08-20 https://git.thebackupbox.net/music/commit/f009dd800111a1f904831e1a0c6e651e7f8e37be keyboard /dev/input/event listener and script to run scripts based on key-codes passed from it to $1 (with xargs) 2022-03-09 https://git.thebackupbox.net/music/commit/dfcd1cff4d714468edb64aac375d729f16745fb2 if all the crap in id3sort fails, it gives up and just outputs the list of files it was given 2022-02-11 https://git.thebackupbox.net/music/commit/5d79176bc74ce26f3d03069f826eefbd2d5c36d3 setnowplaying now updates fmrl and uses a higher syslog priority 2021-12-11 https://git.thebackupbox.net/music/commit/4326ed094dbbcee3c03401d2cdb12f425179e8b9 fixed the null dereferences I cbf to fix before the initial commit 2021-12-11 https://git.thebackupbox.net/music/commit/cc48cd51f726a5cf74db772a39fcb056168ca635 added a naive implementation of an lrc printer 2021-12-01 https://git.thebackupbox.net/music/commit/0cc9995d20441d2502c4d932c69290391feb0319 files that had metadata did not have the file variable set so reading the song length was not working 2021-12-01 https://git.thebackupbox.net/music/commit/efcea0e5f8f588028789db48a4527e54d568a54d music-getplaying now outputs a URL, or it outputs a filename, instead of forcing the URL into a filepath that makes no sense. 2021-11-13 https://git.thebackupbox.net/music/commit/d103ce1081708af90401c77e6eca523108e89546 music-rebroadcast attempt to fail early and completely when something does not work right with pipefail 2021-11-13 https://git.thebackupbox.net/music/commit/b58c72e863dcbbd2ce797af6bfc4611b4905e3ca switched to new tilderadio uri. create the /run/music dir before attempting to use it. mess of stuff to try to get proper title set at the same time the stream starts.. or shortly after. added a lame flag. 2021-11-13 https://git.thebackupbox.net/music/commit/ac5bfdc8a4f0fd5591a5b6b7d8a48481aad2b5eb music-search no long automatically runs music-init after playing what was searched. also ogg files are included. using "choose" program insted of dmenu directly. commented out searched for log message 2021-11-13 https://git.thebackupbox.net/music/commit/8dd846a64a25e7714989443f0b5d3a26cadfa432 a newline... that is it. 2021-11-13 https://git.thebackupbox.net/music/commit/86d58fbaab3c27d62602fd01ea57aa85e7b9c291 switched radio service from mp3 to ogg 2021-11-13 https://git.thebackupbox.net/music/commit/9bb41da1c6f3580115f058d45fa3ff560191c9fa removed some error messages, attempted to better escape data 2021-11-13 https://git.thebackupbox.net/music/commit/23b4da80a0fa86a5b7808c75e64be05ba4b24b35 lots of changes. see previous commit 2021-11-13 https://git.thebackupbox.net/music/commit/1fcbd5d5d3f8e6627b4ff46247fddf2d532e7bcb added music-makemeta to put empty mp3s with only metadata next to actual mp3s that music-fileinfo will use 2021-10-25 https://git.thebackupbox.net/music/commit/2076eee386ecdcb3418489bf815dcf3e60f19dbc changed the -D youtube to -d '*youtube' in a couple scripts since -D doesn't work anymore 2021-09-07 https://git.thebackupbox.net/music/commit/4002b3e77be7c7488d120479cabffea541e4851f add ability to run a playlist of videos and actually see them. if $1 is audio, disable the showing of video... I might reverse the check so defaults to no video. 2021-09-07 https://git.thebackupbox.net/music/commit/38bec97a5ec03c8dcee92a1fd717dd1bfa4e7ddf I think this is unfinished, but it is updating player.pid to current shell's pid 2021-09-07 https://git.thebackupbox.net/music/commit/bc4b2a634e78b19651d44ff50c0be0f34dd2df9a sort any of the mp3s in the dir. store playlist and upload it. 2021-09-07 https://git.thebackupbox.net/music/commit/8153a02f482336fee241b54b247e55f73b793a38 removed a cache file I did not need to add 2021-09-07 https://git.thebackupbox.net/music/commit/89712c5dc0656277595ad8e154946168af531870 store the playlist and upload it somewhere. you will want to edit this script. 2021-09-07 https://git.thebackupbox.net/music/commit/c71050f30b84af00d8c53791d301569373942f70 attempts to get amount of time played so far and song length 2021-09-07 https://git.thebackupbox.net/music/commit/05557ef30aed47f97569d1c42c3aa158e969ee86 made music-pop quieter 2021-09-07 https://git.thebackupbox.net/music/commit/068fe444c3323061203b7cd7e235b277facd8c87 four more short tools 2021-09-07 https://git.thebackupbox.net/music/commit/6c4f803e1a5890a173a9fe732d65e05511638a16 yet another tweak to id3sort. sometimes TRCK, sometimes TRK. weird. 2021-02-20 https://git.thebackupbox.net/music/commit/04de7b1aac15b47273a0cad9fb3548a681084416 put in a check to music-pop for whether a pushuri file exists 2021-02-04 https://git.thebackupbox.net/music/commit/98163f6117b6329be8d36a5625ce479223294fb0 do less derpy stuff with music-stop trying to clean up everything it can 2021-01-19 https://git.thebackupbox.net/music/commit/5a22b86bd3e6d6f6894f402d00b6aa707043fdd8 pushmeta now uses $* instead of $1 2021-01-18 https://git.thebackupbox.net/music/commit/5f83f2584327bc7bd17035fb68164db786087c43 get rid of the dumb FUCK2 test 2021-01-18 https://git.thebackupbox.net/music/commit/9cf7547d18ddfe036b4c3749a479a3c517057464 added more things to install. ofc 2021-01-16 https://git.thebackupbox.net/music/commit/774d8465e0fef1054ec49a2f835b171b14ded506 put a SIGTERM handler in qargs to send a TERM to child process. 2021-01-16 https://git.thebackupbox.net/music/commit/99679c24119a89a43e68e92a076116ac1be9b43d decided to use sigterm instead of sigint for music-stop 2021-01-15 https://git.thebackupbox.net/music/commit/2dc6038478d279873110b4015adc3100ff209cdb propagate the SHOW_VIDEO to plain mpv, rebroadcast if it is a URL that is http (after youtube check) 2021-01-15 https://git.thebackupbox.net/music/commit/c1fc8cabdaa8ad59132dc720c2f38db1fd418c95 added a "did you configure this at all?" check, longer wait before sending title data. switched to music-record instead of pacat 2021-01-15 https://git.thebackupbox.net/music/commit/b6d9faebf5aec9cda33f51778ac620444502c3ce switched to mp3 for music-radio 2021-01-15 https://git.thebackupbox.net/music/commit/45a59dd7666c856a9ea3a7e4bcedb7663f8660c7 music-stop now uses SIGINT and sends it to children too 2021-01-15 https://git.thebackupbox.net/music/commit/c2f14ee744d31ba5fe2e8415ed1f15435c106427 now using music-record as a central point for how to get audio into the various stream scripts. also music-pop kills children of the music-push script too. 2020-12-10 https://git.thebackupbox.net/music/commit/b1f0ca18dd1fa2ab49006675206f8bc121bf776c music-unpause now uses updateplaying instead of doing it itself 2020-12-10 https://git.thebackupbox.net/music/commit/24413e9410371acb297621a72fdeca352f46bbeb put in hook for pushing to a remote icecast station in setnowplaying 2020-12-10 https://git.thebackupbox.net/music/commit/fa9ab750780ec6e08027dada2f2a468d739b71dc added the push scripts 2020-11-13 https://git.thebackupbox.net/music/commit/49aeeb84eb9b68f62e2e109561438901b94b888e found another place where id3sort failed and fixed it 2020-11-13 https://git.thebackupbox.net/music/commit/2b77917e8c56c5c98c5d9c4b42a4db882c027d94 music-search now disables video. that was bugging me. 2020-10-16 https://git.thebackupbox.net/music/commit/8216c7a701dd59502b4f66c53e8986291709400a fuck not testing too. (and two characters some more) 2020-10-16 https://git.thebackupbox.net/music/commit/e6d107b97b5336db6a969fb4c67d292ce5ce25bc fuck comment characters too sometimes... 2020-10-16 https://git.thebackupbox.net/music/commit/4141a691686804a2a4bf4bd57bb383373503ff19 fuck two characters sometimes... 2020-10-16 https://git.thebackupbox.net/music/commit/f2ca63e3bc0635cb80a3d41a711023417f2ab44d id3sort is now mostly comment, but it actually works for 3 different possibilities of id3 tags 2020-09-03 https://git.thebackupbox.net/music/commit/bfbfc1994353c02fa1b055b8d0df7f9e90ebbab3 id3sort now works for id3v1 and id3v2 tags. was broken for v1. also, now id3sort is in the makefile install target 2020-07-30 https://git.thebackupbox.net/music/commit/0e6df87343752b1d18b91008339b6376c45a4d37 added icy-metadata to .gitignore because now it is the output of compiling icy-metadata.c 2020-07-30 https://git.thebackupbox.net/music/commit/5455d58aea5a51035494db1891d27045c610e508 terrible and incomplete README, but hey, it didn't exist before, so... progress? 2020-07-30 https://git.thebackupbox.net/music/commit/76b65a4553481f562c44bcd12c64b56f641498f8 mpv uses youtube-dl anyway, so no point in calling it ourselves 2020-07-30 https://git.thebackupbox.net/music/commit/5fd8dfe8fe41fd6df47d24946aceb7ebf1804ce7 pid file checks, process name check, debug info 2020-07-30 https://git.thebackupbox.net/music/commit/979ed56d8a3208a50aecd30138f54810f8e49ab2 switched to the new paths for things 2020-07-30 https://git.thebackupbox.net/music/commit/941aa70e4a5f91da2ec05548f6dde6102c82981d added ogg to the list of file extensions to play 2020-07-30 https://git.thebackupbox.net/music/commit/c1e1f97c68746246b296b1e4b69db1a3e8b26ac3 updated paths to use a / after music instead of - 2020-07-30 https://git.thebackupbox.net/music/commit/c052c4d7a47835aa5d83d20b5c71b1f0efcc8f76 changed pid file path to new path 2020-07-30 https://git.thebackupbox.net/music/commit/44f76fc53e8e54fac3874dddcdf34d093d6d847b check that the pid file for the player exists before doing other shit 2020-07-30 https://git.thebackupbox.net/music/commit/fb585204839db9b3b462fb03fedfd979b11fe1a9 check that the pid exists before sending a STOP to whatever is inside it 2020-07-30 https://git.thebackupbox.net/music/commit/94dc078e163262ec3c69a5c296c34d5f0bb1f57e found some radio that used Title: instead of icy-title: somehow. also now prepend the station being rebroadcasted to the nowplaying 2020-07-30 https://git.thebackupbox.net/music/commit/6c6e51db5d71b4abfee8735d6bb699e3be382bfe outputs sixels only if a variable is set 2020-07-30 https://git.thebackupbox.net/music/commit/8d3b192c085105f71e3d04033d9c9a607f73b76f you can now search for and play a whole dir instead of only single files 2020-07-30 https://git.thebackupbox.net/music/commit/17332b75d8a01f29eef22f8c5959baa0b9b9b12d added an HTTP header you can pass to get the album art sent with the icy-title as sixels 2020-07-30 https://git.thebackupbox.net/music/commit/2547687ade4302b4e83110f12f3489ee0a0f2964 music-stop will not try to kill the player if init.pid is gone. forgot why. 2020-07-30 https://git.thebackupbox.net/music/commit/27337a76f548c4e4c7d230a253b656528edf96fd put a check to make sure the pid file actually exists before attempting to use it 2020-07-30 https://git.thebackupbox.net/music/commit/89d0850eeb46107700d95bacf2cd68a07035d7d4 put a check to make sure the pid file actually exists before attempting to use it 2020-07-30 https://git.thebackupbox.net/music/commit/f62a812d9a9de5148a74f69a3196b8015a323f42 changed locations of player.pid file 2020-07-30 https://git.thebackupbox.net/music/commit/e31af2771e634def61aa17bdf7992d0eff0747be added ogg support. will need "vorbiscomment" program 2020-06-09 https://git.thebackupbox.net/music/commit/2b310db10f3ed62a1591744c1c4705fee3911bf0 a commented out command to use festival for tts of the now-playing song before it plays 2020-06-09 https://git.thebackupbox.net/music/commit/44a277f7de4cf92b9cf53319bbc84e88f1a41262 put a while loop into music-init because it makes more sense for it to inf-loop than to attempt to run-restart it when it gets stopped. this way a music-stop will cause music-init to finish and it will not stop by itself. 2020-06-09 https://git.thebackupbox.net/music/commit/63656561a3f5bb597fa926f02553715662d25ee4 squash! setnowplaying was only using $1 instead of all args 2020-06-09 https://git.thebackupbox.net/music/commit/3cb2d309762cac5d5d57bdfa271dde07125c76d2 music-fileinfo now supports ogg comments in flacs 2020-06-09 https://git.thebackupbox.net/music/commit/ec69d061e2c11cfd6b52b66c29b4c86b2c7ade9b setnowplaying was only using $1 instead of all args 2020-06-07 https://git.thebackupbox.net/music/commit/2d4ea557f7caaac08c2ffb5afb725a4233a21deb sighup to skip to the end of of stdin in qargs.c 2020-02-14 https://git.thebackupbox.net/music/commit/9f9fb8c64344091ec8d114a68e988d34c7324eb3 music-setnowplaying will append a small sixel version of a guess of the album art to the end of the nowplaying cache file 2020-02-14 https://git.thebackupbox.net/music/commit/b68aa2e045648c52cac82099020757bddb2e4c08 made icy-title updates more frequent 2020-02-14 https://git.thebackupbox.net/music/commit/75f962037da2d01b94ea1e2027543d1ee69313b3 wrote a better icy-metadata in C 2020-02-14 https://git.thebackupbox.net/music/commit/061c1fbdd7badb0133dabb0c73007b96b31d2db5 a hack to get album art in sixel form into the now-playing information. 2020-02-05 https://git.thebackupbox.net/music/commit/f87c5aa97ea1766919e4145fb16b1fefadf4e985 added music-search to let me easily pick a single song to play then let it go back to shuffle 2020-01-31 https://git.thebackupbox.net/music/commit/ea98f873242fa83cc2726e712ed898232fdf3a99 made unpause set nowplaying to either fileinfo or urititle if youtube 2020-01-31 https://git.thebackupbox.net/music/commit/66c319eb395b86eff08c7eacffbf2306bb65e7af squash! cargo cults are fun 2020-01-31 https://git.thebackupbox.net/music/commit/5807d49865aae09aa6dcd49e2ccf64efac50fa38 cargo cults are fun 2020-01-31 https://git.thebackupbox.net/music/commit/fd165a542ab7c8c72563108d7d30726b26dccd66 turn multiple spaces into a single space. for some stupid reason some of my songs had a bunch of spaces in their metadata 2020-01-31 https://git.thebackupbox.net/music/commit/4a284d71b47eea92f938bfbfd730705256f22f47 pipefail cargo cult programming 2020-01-31 https://git.thebackupbox.net/music/commit/d58ed3c0b484d89dfacdb97799889d936a3ccba1 music-init can now work fine if ~/Music is a symlink... which I have in my setup. 2020-01-31 https://git.thebackupbox.net/music/commit/9d1db9ac7e92aaa317a22a5810b29d9e1f8298f6 check that pid files exist before attempting to kill their contents in music-stop 2019-12-30 https://git.thebackupbox.net/music/commit/2e6efcd10ae7cf336bbb0508aa28bec27550d2b3 removed the music-rebroadcast-firefox since I renamed it in a previous commit and forgot to include the git rm in that commit 2019-12-30 https://git.thebackupbox.net/music/commit/d4d489ce3b0dfe08e0e21cc193e282f5a3085a37 reset the now-playing after an unpause because it usually gets changed during a pause. 2019-12-30 https://git.thebackupbox.net/music/commit/e59b9038a9434d37b02dcb18a6b942cba7f945d0 the music stuff will now find both mp3 and flac instead of just mp3. edit these scripts if you want more file types. 2019-12-30 https://git.thebackupbox.net/music/commit/b2fc25e9124943c98b67d38ecd42402804e88786 added a couple more things to the Make install target. finally added the script I have been using to scrape X11 window titles and set them as the now-playing info. was using -e instead of -c for music-radio trying to run music-stream for some dumb reason. music-stream now logs remote IP and port 2019-12-19 https://git.thebackupbox.net/music/commit/e8e7223a1f6aff8d91ae68be4a1cffb16f04a1ff small script to just pass a filter to ss to show connections to the radio because I can not ever remember that shit 2019-12-17 https://git.thebackupbox.net/music/commit/7d7440fe0a7fcf769ff429945b380e341d41dc8f changed all the logger calls to set the priority too so each type of message can be handled differently logserver-side. did git -A and grabbed all the mpd compat stuff too. very WIP. 2019-12-17 https://git.thebackupbox.net/music/commit/7711b28a986495d3331ad4e9d339e85ca62bc999 I didn't actually make it use lame instead of oggenc. fixed 2019-12-17 https://git.thebackupbox.net/music/commit/70b79edd49befbdbda59456b790f7970e88f8fe3 re-enabled the icy-metadata in music-stream 2019-12-17 https://git.thebackupbox.net/music/commit/8c6116b38c29370d471da9544a3c31ebb4951655 changed music-fileinfo to strip out the leading music directory from fallback fileinfo 2019-12-17 https://git.thebackupbox.net/music/commit/e3a2263b0723547cb2c3a53122fee1cc2d1823ad added pad to the Makefile, using pad to finish out the 16 byte chunks in icy-metadata which now works... more correctly I guess. 2019-12-16 https://git.thebackupbox.net/music/commit/7c483b2652e16543ded0c2fe0db03b89f93c33bb noticed a single-character was missing. a semi-colon in the metadata 2019-12-16 https://git.thebackupbox.net/music/commit/dbf684c57bfbc8be608e9ee9cfd30250e189d2f9 added something for scraping X11 window titles and pushing that into the nowplaying. I use it for firefox so that's what it filters out and was named for 2019-12-16 https://git.thebackupbox.net/music/commit/4714691d8847876131c35cbd6464700844b19175 moved the old nowplaying code into getplaying, and nowplaying now just dumps the data from the nowplaying file 2019-12-16 https://git.thebackupbox.net/music/commit/fa41f320c26bcf5a54b8ea6d6f2a6b9af7e773c7 fixed a few dumb errors in music-playlist 2019-12-16 https://git.thebackupbox.net/music/commit/949cb2fa84dfc98716d8f2329c7dd52699265d39 added ability for music-player to call external program on URLs... it adds a dependency of uritools though. comment out if you do not have it I guess. should error around it if you do not have it anyway. 2019-12-16 https://git.thebackupbox.net/music/commit/9eff4eec691a789bb6f72e71b0743f85c8fda3f4 added radio things to makefile 2019-12-16 https://git.thebackupbox.net/music/commit/9cf4f33e781d777c5f85bbc1bd0fe540656ae3ef forgot a couple other files for radio things 2019-12-16 https://git.thebackupbox.net/music/commit/f73c3bb0fa82ecc4348ed3e9c80a546b369d85ae added the radio scripts after cleaning and splitting up. tried to add icy-title support. still WIP. 2019-12-10 https://git.thebackupbox.net/music/commit/ed61198e12f90889200680ffb2ee3295fa4766ed added ability to rebroadcast icecast stations and forward the updated nowplaying info with mpv. 2019-12-09 https://git.thebackupbox.net/music/commit/9c8dd9609b2bedcefaca77fdd556c0e040d12917 added id3sort and music-sortandplay scripts to work-around files that aren't in album-order based on their filename order 2019-12-09 https://git.thebackupbox.net/music/commit/cd22147fe06c45660b63db54a1c461444a358d2d music-playlist now won't clobber an old instance 2019-12-09 https://git.thebackupbox.net/music/commit/5c510459be673a1532e97c40c73a104fd3dda738 upgraded qargs to have an infinite amount of lines go through it, and just have a finite amount of backlog 2019-12-09 https://git.thebackupbox.net/music/commit/9c96fb321d4ef59b425c190e835d291b7ba22364 added more logging 2019-11-23 https://git.thebackupbox.net/music/commit/a76b5602891d40a588eaf31a177c823faf3b402e added ability to add a single dir. turn the duplicate portions of music-playdir and music-init into music-playlist script that just takes a list of files from stdin to play. 2019-11-19 https://git.thebackupbox.net/music/commit/8ca6904c07d551570b661422fb7b31188db609be changed some returns and added on for trying to go to line -1 2019-11-18 https://git.thebackupbox.net/music/commit/ebf0dd3bd2641c96a6f0053d2ff973fbb030d4b7 added scripts to collect the now playing file and display the id3 tags nicely 2019-11-18 https://git.thebackupbox.net/music/commit/9598ce81f43af6f1050792f0656ecfaadc2a0aba made music-player log to remote host the nowplaying info 2019-11-18 https://git.thebackupbox.net/music/commit/adb74d30879229feeb7ed9aa66f1a487a32841f4 set the fileinfo of the launched file into a nowplaying text file 2019-11-18 https://git.thebackupbox.net/music/commit/c5d40942889836890485953cac3f5bc1c7328511 added stuff for showing info about files and getting the now playing file 2019-11-18 https://git.thebackupbox.net/music/commit/70cd27d2979c071a52827c754280de1a65148fce music-playpause didn't need to send music-pause and music-unpause an argument 2019-11-18 https://git.thebackupbox.net/music/commit/c8ab590da7b95fa10d3fa381519fe26eb2504ba9 changed the pause and unpause to use the PID qargs makes for its child 2019-11-18 https://git.thebackupbox.net/music/commit/b53daee348e0aadabd5c077c9b3aa68d2554cc85 well, it all works here. might as well commit it to git