Updated list-news.ps1 and watch-news.ps1

This commit is contained in:
Markus Fleschutz
2024-11-22 14:40:07 +01:00
parent 6b2abf3103
commit 9fd63dbb30
2 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ function PrintLatestHeadlines([xml]$content, [string]$latestTimestamp, [string]$
foreach($item in $items) {
$pubDate = $item.pubDate
if ($pubDate -le $latestTimestamp) { continue }
$title = $item.title
$title = $item.title -replace "â","'"
$time = $pubDate.Substring(11, 5)
Write-Host "$time $title$icon"
Start-Sleep -milliseconds 500