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

This commit is contained in:
Markus Fleschutz
2024-11-25 09:14:32 +01:00
parent ca3a9dd069
commit c1a010f016
2 changed files with 6 additions and 6 deletions

View File

@ -12,8 +12,8 @@
.EXAMPLE
PS> ./watch-news.ps1
UTC HEADLINES (by: https://www.yahoo.com/news/world)
--- ------------------------------------------------
UTC HEADLINES (source: https://www.yahoo.com/news/world)
--- ---------
14:29 Niger coup: Ecowas deadline sparks anxiety in northern Nigeria
...
.LINK
@ -44,10 +44,10 @@ try {
[xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content
$title = $content.rss.channel.title.toUpper()
$link = $content.rss.channel.link
Write-Host "`n UTC HEADLINES (by: " -noNewline
Write-Host "`n UTC HEADLINES (source: " -noNewline
Write-Host $link -foregroundColor blue -noNewline
Write-Host ")"
Write-Host " --- ------------------------------------------------"
Write-Host " --- ---------"
$latestTimestamp = "2000-01-01"
$icon = ""
do {