From 16bb5e7fdb46998f3917b1e949ae0ac123e8afb9 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 7 Aug 2023 15:11:32 +0200 Subject: [PATCH] Update list-headlines.ps1 and list-news.ps1 --- Scripts/list-headlines.ps1 | 2 +- Scripts/list-news.ps1 | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Scripts/list-headlines.ps1 b/Scripts/list-headlines.ps1 index 8b54d96d..07f8dea6 100755 --- a/Scripts/list-headlines.ps1 +++ b/Scripts/list-headlines.ps1 @@ -23,7 +23,7 @@ try { [xml]$Content = (Invoke-WebRequest -uri $RSS_URL -useBasicParsing).Content [int]$Count = 0 foreach ($item in $Content.rss.channel.item) { - "❇ $($item.title)" + "❇️ $($item.title)" $Count++ if ($Count -eq $MaxCount) { break } } diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 08194eff..db3012b1 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -30,13 +30,6 @@ try { } $Source = $Content.rss.channel.title $Date = $Content.rss.channel.pubDate - $Date = $Date -Replace "Mon, ","" - $Date = $Date -Replace "Tue, ","" - $Date = $Date -Replace "Wed, ","" - $Date = $Date -Replace "Thu, ","" - $Date = $Date -Replace "Fri, ","" - $Date = $Date -Replace "Sat, ","" - $Date = $Date -Replace "Sun, ","" "(by $Source as of $Date)" exit 0 # success } catch {