22 |
$procCount++ |
$procCount++ |
23 |
$pcntCmplt = [int][math]::round( ( $procCount / ($mp3Results.Length + 1) )*100) |
$pcntCmplt = [int][math]::round( ( $procCount / ($mp3Results.Length + 1) )*100) |
24 |
|
|
25 |
$saveFullName = Join-Path $savePath ($_.title + ".mp3") |
$saveFullName = Join-Path $savePath (($_.title -replace ":|\?|/|\\|\||\*|<|>|""", "-") + ".mp3") |
26 |
Write-Progress -Activity "Downloading..." -Status $_.title -CurrentOperation "Progress: $($pcntCmplt)%" -PercentComplete $pcntCmplt |
Write-Progress -Activity "Downloading..." -Status $_.title -CurrentOperation "Progress: $($pcntCmplt)%" -PercentComplete $pcntCmplt |
27 |
if ( $DebugPreference -ne "SilentlyContinue" ) { |
if ( $DebugPreference -ne "SilentlyContinue" ) { |
28 |
Write-Debug "Sleep for 1 seconds" |
Write-Debug "Sleep for 1 seconds" |