Skip to content

Instantly share code, notes, and snippets.

@gmt4
Created September 5, 2024 07:57
Show Gist options
  • Save gmt4/c2b6c029cc9687ac1edb2afc338aa033 to your computer and use it in GitHub Desktop.
Save gmt4/c2b6c029cc9687ac1edb2afc338aa033 to your computer and use it in GitHub Desktop.
oneliner mpvc somafm player
#!/bin/sh
# @file mpvc-somafm: script for playing SomaFM channels using github.com/gmt4/mpvc
curl -fsSL "https://somafm.com/channels.json" | jq -r '.channels | sort_by(.listeners | tonumber) | reverse | .[] | (.playlists[3]|.url) + ";" + .listeners + " ls "+.genre+";"+ .title' | column -s ';' -t | mpvc-fzf -F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment