mpv -no-vid https://robertturman.bandcamp.com/album/chapter-eleven-1976-1987
(or add multiple URLs to build a playlist)
mpv -no-vid https://takusugimoto.bandcamp.com
(seems to be broken at the moment; need to update)
TODO: make it possible to play entire collection
curl -sS "https://bandcamp.com/ggorlen" \
| xmllint --html --xpath '//*[@id="pagedata"]/@data-blob' 2>/dev/null - \
| sed 's/^ data-blob=\"\|\"$//g' \
| perl -MHTML::Entities -pe 'decode_entities($_);' \
| jq '{fan_id: .fan_data.fan_id, older_than_token: .wishlist_data.last_token, count: 10}' \
| curl -sS -X POST -H "Content-Type: Application/JSON" \
--data-binary "@-" https://bandcamp.com/api/fancollection/1/collection_items \
| jq -r .items[].item_url \
| xargs curl -sS \
| xmllint --html --xpath '//script[@data-tralbum]/@data-tralbum' 2>/dev/null - \
| sed 's/^ data-tralbum=\"\|\"$//g' \
| perl -MHTML::Entities -pe 'decode_entities($_);' \
| jq -r '.trackinfo[].file."mp3-128"' \
| mpv -no-video --playlist=-
mpv -no-vid https://en.wikipedia.org/wiki/YouTube
cat playlist.txt | xargs mpv -no-vid
# or
mpv -no-vid $(cat playlist.txt)
mpv -no-vid https://en.wikipedia.org/wiki/YouTube
Although I get an occasional [ytdl_hook] ERROR: No video formats found
error for certain videos.
mpv -no-vid https://www.discogs.com/master/50617-Wire-Chairs-Missing
url="https://www.microsound.org/projects/bufferFuct/"
curl -A "Mozilla/8.0" -sS $url \
| xmllint --html --xpath '//a[substring(@href, string-length(@href) - string-length(".mp3") + 1) = ".mp3"]/@href' - \
| sed 's/^ href="\|"$//g' \
| mpv -no-video --playlist=-
wget -r -l1 -H -nd -A mp3 -e robots=off http://www.microsound.org/projects/