From c1a010f016850f3e8eff9bf970a231adfb26cd4c Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 25 Nov 2024 09:14:32 +0100 Subject: [PATCH] Updated list-news.ps1 and watch-news.ps1 --- scripts/list-news.ps1 | 4 ++-- scripts/watch-news.ps1 | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/list-news.ps1 b/scripts/list-news.ps1 index aa151d90..a8ca3f86 100755 --- a/scripts/list-news.ps1 +++ b/scripts/list-news.ps1 @@ -12,7 +12,7 @@ .EXAMPLE PS> ./list-news.ps1 - UTC HEADLINES (by https://www.yahoo.com/news/world + UTC HEADLINES (source: https://www.yahoo.com/news/world) --- --------- 09:15 • Deadly Mediterranean wildfires kill more than 40 ... @@ -28,7 +28,7 @@ try { [xml]$content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content $title = $content.rss.channel.title $URL = $content.rss.channel.link - Write-Host "`n UTC HEADLINES (by " -noNewline + Write-Host "`n UTC HEADLINES (source: " -noNewline Write-Host $URL -foregroundColor blue -noNewline Write-Host ")" Write-Host " --- ---------" diff --git a/scripts/watch-news.ps1 b/scripts/watch-news.ps1 index b1ecdef4..f2e015bc 100755 --- a/scripts/watch-news.ps1 +++ b/scripts/watch-news.ps1 @@ -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 {