Unofficial PowerShell Core script to download albums from KHInsider, with robust resume functionality.
KHDownloader is available on the PowerShell Gallery! To install or update KHDownloader, run the following command:
Install-PSResource -Name khdAdditionally, to make khd executable without requiring the /full/path/to/khd.ps1, run the following command:
& {
$khdInstallLocation = (Get-InstalledPSResource -Name khd).InstalledLocation
if ($env:PATH -notmatch $khdInstallLocation -and
$Host.UI.PromptForChoice(
'Add script directory to PowerShell PATH environment variable?',
"This makes `"khd`" executable without requiring the full path `"$khdInstallLocation$([System.IO.Path]::DirectorySeparatorChar)khd.ps1`"",
('&Yes','&No'),
0
) -eq 0
) {
# Create directories to $PROFILE.CurrentUserAllHosts if they don't exist
$dir = Split-Path $PROFILE.CurrentUserAllHosts -Parent
if (-not (Test-Path $dir)) {
New-Item -ItemType Directory -Path $dir -Force > $null
}
Add-Content -LiteralPath $PROFILE.CurrentUserAllHosts -Value ('$env:PATH = "' + $khdInstallLocation + [System.IO.Path]::PathSeparator + '$env:PATH"')
# Add it to current session PATH too
$env:PATH = $khdInstallLocation + [System.IO.Path]::PathSeparator + $env:PATH
}
}You can then simply run the script:
khd -Url ...Note
Use khd.ps1 outside of a PowerShell session
For more informations see the latest release.
The following third-party assets, including any minor modifications, remain under their original licenses:
- 00 Front.png
and cover_back.png
- License: CC0 1.0
- Source: https://commons.wikimedia.org/wiki/File:Sports_car_or_race_car_animation.png
- 01. Title Screen.mp3
- License: CC0 1.0
- Source: https://freesound.org/people/s-cheremisinov/sounds/401121/
- 02. Main Menu.m4a
and 02. Main Menu.mp3
- License: CC0 1.0
- Source: https://freemusicarchive.org/music/holiznacc0/horseless-headman-halloween-beats/haunted-houses/
- 03. Credits.mp3
- License: CC0 1.0
- Source: https://freesound.org/people/Mondschein90/sounds/175672/