20261025-weeklymusictoot_2.0.md (1770B)
1 --- 2 title: weeklymusictoot 2.0 3 keywords: [programming, software] 4 ... 5 6 After a long hiatus my [#weeklymusictoot] is back. 7 8 My original [weeklymusictoot][] was a fairly simple shell script that took a list of the albums played, logged by a [cmus][] script, and posted it to my Mastodon feed. 9 10 This was working great for a long time. Recently, however, due to various client commitments I have been away from my own office and my main workstation. This has meant that I have been using my [Navidrome][] music server a lot more and using `cmus` a lot less. 11 12 Therefore I decided to rewrite my script and create a new [wmt][]. 13 14 Written in python, this script connects to my Navidrome server, pulls the list of albums played since the previous Monday, and posts it to my Mastodon feed; the same as the previous version. 15 16 The main difference in the listing is that the original shell script would sort the list from most to least played albums. I have not (yet) done the same with the new version, the list is in the order the albums were played. 17 18 A benefit of pulling the data from my Navidrome server is a more accurate list of my weekly music, as it includes anything listened to on my mobile devices. I have also decided to move the #weeklymusictoot to post on Sunday evening instead of Friday, covering a full week. 19 20 In the future I would like to try and combine both versions as I still use `cmus` when at my main workstation. 21 22 The first post went out a [few moments ago][]. 23 24 [#weeklymusictoot]: https://harbour.cafe/tags/weeklymusictoot 25 [weeklymusictoot]: 20221005-weeklymusictoot.html 26 [cmus]: https://cmus.github.io 27 [Navidrome]: https://www.navidrome.org 28 [wmt]: https://git.pyratebeard.net/wmt 29 [few moments ago]: https://harbour.cafe/@pyratebeard/117503833100448358