Created
May 10, 2020 11:02
-
-
Save Pmmlabs/d0f32ab463e1aafbffe7a161ce8d922b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIST=$(curl https://www.last.fm/player/station/user/$USER/recommended?ajax=1 | jq -r '.playlist|.[]|._playlinks|.[0]|.url') | |
FILENAME="lastfm.pls" | |
echo "" > $FILENAME | |
i=1 | |
for url in $LIST | |
do | |
echo "File$i=$url" >> $FILENAME | |
i=$((i+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment