[PowerShell] / Get-MorningSickness.ps1 Repository:
ViewVC logotype

Diff of /Get-MorningSickness.ps1

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Wed Jul 3 04:22:00 2013 UTC revision 2, Wed Jul 10 03:37:35 2013 UTC
# Line 22  Line 22 
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"

Legend:
Removed from v.1  
changed lines
  Added in v.2

Contact
ViewVC Help
Powered by ViewVC 1.0.4