Skip to content

Instantly share code, notes, and snippets.

@KleaTech
Created May 18, 2022 16:28
Show Gist options
  • Save KleaTech/9266884df7b76e72067edd637e2a8726 to your computer and use it in GitHub Desktop.
Save KleaTech/9266884df7b76e72067edd637e2a8726 to your computer and use it in GitHub Desktop.
Find Beat Saber ranked maps on Quest
./adb shell find "/mnt/sdcard/ModData/com.beatgames.beatsaber/Mods/SongLoader" -iname "info.dat" | foreach { $dir=$_.split("/")[-2]; ./adb pull $_ "c:/Temp/$dir.dat" }
Get-ChildItem | foreach {$_.name.replace("custom_level_", "").replace(".dat", "")} | where { $_.length -eq 40 } | where {$res=(invoke-webrequest -uri "https://scoresaber.com/api/leaderboard/by-hash/$_/info?difficulty=9" -SkipHttpErrorCheck); $res.StatusCode -eq 200 -and ($res.Content -match '"ranked": true')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment