mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01:00
Improve output of play-mp3.ps1
This commit is contained in:
parent
23c2be2dd4
commit
be62a1ef5a
@ -23,7 +23,7 @@ try {
|
||||
|
||||
[int]$Minutes = $Milliseconds / 60000
|
||||
[int]$Seconds = ($Milliseconds / 1000) % 60
|
||||
"▶️ Playing 🎵$Filename ($($Minutes.ToString('00')):$($Seconds.ToString('00')) sec.) ..."
|
||||
"▶️ Playing 🎵$Filename for $($Minutes.ToString('00')):$($Seconds.ToString('00')) sec..."
|
||||
$PreviousTitle = $host.ui.RawUI.WindowTitle
|
||||
$host.ui.RawUI.WindowTitle = "▶️ $Filename"
|
||||
$MediaPlayer.Volume = 1
|
||||
|
Loading…
Reference in New Issue
Block a user