Skip to main content


Most played albums of 2022

Borderline: Asylum Party
Night Drive: Skeler
Sequencer Beta: Covenant
Le besoin perpétuel: Lebensessenz
Gala: Euroshima
the killer was in the government blankets: yaphet kotto
Black Eyes: Black Eyes
Compter Les Corps: Vulgaires Machins

https://wiki.xxiivv.com/site/listening.html

#theStudio
in reply to Devine Lu Linvega

i feel like i ask this every year, but how do you track which album is played with cmus-remote?
in reply to efelbar

@flbr It's very dumb, but it works well enough:

a cron job that writes the output of cmus-remote as "artist - track" into a text file, every 5 minutes. That's all

And I have this uxntal file that counts the number of instances a certain "artist - track" is present and sort by numbers
in reply to Devine Lu Linvega

dumb is good 😀
also i love that you're now using uxntal to do the parsing!
in reply to efelbar

@flbr uxntal is pretty-much my favourite scripting language for quick string parsing and I/O at this point.
in reply to Devine Lu Linvega

i've actually been planning on spending today relearning uxn, i have some ideas for a fork of adelie which will need some I/O functionality!

if you've got a collection (or even just a couple examples) of your use of uxntal for quick text parsing and I/O scripting i'd love to see it :>
in reply to Devine Lu Linvega

@flbr I recommend that you go through @sejo's book, at least the first few chapters before looking at the more advanced examples: https://compudanzas.net/uxn_tutorial_day_1.html

Have fun! :uxn:
in reply to Devine Lu Linvega

okay holy shit I don't know why this is so difficult for me to figure out! what does your cron job look like? I can't seem to get cmus-remote to print to a file from cron :/
in reply to efelbar

@flbr you're using this in your cron job right?

cmus-remote -Q (your parsing) >> ~/.scrobble
in reply to Devine Lu Linvega

I have a script which does all the cmus-remote parsing I need, but it just doesn't want to run from a cron job...

the script is
```
cmus-remote -C "format_print %{artist} %{album} %{title}" | awk 'NR❤ {printf "%s\t",$i} NR==3 {print}' >> /home/benh/.listening; awk -i inplace '!p[$0]++' /home/benh/.listening
```
and it works great... but not through cron?
in reply to Devine Lu Linvega

using sudo in the cron job or in the script? or when running `crontab -e`?
in reply to efelbar

@flbr sudo cmus-remote, does it throw a warning? If you dump the error into a file, does it say something "not playing"
in reply to Devine Lu Linvega

it just fails with no error. Also, exporting the cron job environment variables and trying to run the script in a shell with the same variables produces the same result, so I guess it's something in the environment?
in reply to efelbar

@flbr I thought so, but it would throw an error if cron couldn't use cmus-remote.. I don't use sudo or anything for my thinkpad, just cmus-remote stuff >> /home/ayatori/.scrobbles
in reply to Devine Lu Linvega

so is your cronjob just `cmus-remote -Q >> /home/ayatori/.scrobbles`, with parsing done somewhere else?
in reply to efelbar

@flbr no, I do it in my cron file, it's just that it's kind of a mess right now, it's entangled into other things.
in reply to Devine Lu Linvega

yeah! Someone listen to old covenant stuff. Sequenzer Best album. A good listen for 2022 and beyond 😀

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.