Skip to content

Commit

Permalink
Update Startup-Log.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Feb 18, 2025
1 parent 47f9723 commit a6cf4da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/Core/Startup-Log.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ function Startup {
$mediaItem = $itt.mediaPlayer.newMedia($track)
$itt.mediaPlayer.currentPlaylist.appendItem($mediaItem)
$itt.mediaPlayer.controls.play()

# debug start
#$currentFileName = $itt.mediaPlayer.currentMedia.name
#Write-Host "Currently playing: $currentFileName"
# $currentFileName = $itt.mediaPlayer.currentMedia.name
# Write-Host "Currently playing: $currentFileName"
# debug end
}
# Shuffle the playlist and create a new playlist
function GetShuffledTracks {
switch ($itt.Date.Month, $itt.Date.Day) {
{ $_ -eq 9, 1 } { return $ST.Favorite | Get-Random -Count $ST.Favorite.Count }
{ $_ -eq 10, 6 -or $_ -eq 10, 7 } { return $itt.database.OST.Otobers | Get-Random -Count $ST.Otobers.Count }
{ $_ -eq 10, 6 -or $_ -eq 10, 7 } { return $ST.Otobers | Get-Random -Count $ST.Otobers.Count }
default { return $ST.Tracks | Get-Random -Count $ST.Tracks.Count }
}
}
Expand Down

0 comments on commit a6cf4da

Please sign in to comment.