Skip to content

Instantly share code, notes, and snippets.

@glektarssza
Created February 15, 2025 16:11
Show Gist options
  • Save glektarssza/69821b2962de47cc66d24facd6b7b26c to your computer and use it in GitHub Desktop.
Save glektarssza/69821b2962de47cc66d24facd6b7b26c to your computer and use it in GitHub Desktop.
khinsider.com PowerShell One Line Downloader
# Replace "<ALBUM>" with the final path to the album to be downloaded.
(wget "https://downloads.khinsider.com/game-soundtracks/album/<ALBUM>" -O -).Split("\n") |
Select-String -Pattern 'playlistDownloadSong' -Raw -SimpleMatch |
%{
$_.TrimStart("<td class=`"playlistDownloadSong`"><a href=`"").TrimEnd("`"><i class=`"material-icons`">get_app</i></a></td>")
} |
%{
(wget "https://downloads.khinsider.com/$_" -O -).Split("\n")
} |
Select-String -Pattern 'eta.vgmtreasurechest.com' -Raw -SimpleMatch |
Select-String -Pattern 'audio' -Raw -SimpleMatch -NotMatch |
% {[System.Text.RegularExpressions.Regex]::new(".+href=`"(.+?)`".+").Replace($_, "`$1")} |
% {
if (!(Test-Path -PathType Any $([System.Uri]::UnescapeDataString($_.Substring($_.LastIndexOf("/")+1))))) {
wget $_;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment