Skip to content

Instantly share code, notes, and snippets.

@bostrt
Last active January 15, 2021 02:59
Show Gist options
  • Save bostrt/e4ba546e39fd6609a83745b9c56ba9e6 to your computer and use it in GitHub Desktop.
Save bostrt/e4ba546e39fd6609a83745b9c56ba9e6 to your computer and use it in GitHub Desktop.
Upload BSaber Playlist to Quest via BMBF

Get playlist:

# QUEST_IP=192.168.x.x
# PLAYLIST_URL=https://bsaber.com/PlaylistAPI/18-08-06_songs-with-fantastic-flow-vol-1_elliotttate.bplist
# PLAYLIST_NAME=$(basename $PLAYLIST_URL) 
# wget $PLAYLIST_URL

Download each song from playlist:

# for k in $(cat $PLAYLIST_NAME | grep '"hash"' | awk '{print $2}' | tr -d '",\r' ); do wget https://beatsaver.com/api/download/hash/$k -O $k.zip ; done

Send to Quest:

# for song in *.zip; do curl -v -F "file=@$song" http://$QUEST_IP:50000/host/beatsaber/upload; done

Go to SyncSaber/BeatSync and move stuff around

@Scoder12
Copy link

Scoder12 commented Jan 15, 2021

Better method for step 2 if you have jq:

for i in $(<$PLAYLIST_NAME jq -r '.songs[].hash'); do wget https://beatsaver.com/api/download/hash/$i -o $i.zip; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment