Created
February 15, 2025 16:11
-
-
Save glektarssza/69821b2962de47cc66d24facd6b7b26c to your computer and use it in GitHub Desktop.
khinsider.com PowerShell One Line Downloader
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
# 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