Update list-crypto-rates.ps1 and list-news.ps1

This commit is contained in:
Markus Fleschutz
2023-01-12 12:26:17 +01:00
parent afb0e2b9e4
commit 3e3dd13302
4 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,6 @@
<#
.SYNOPSIS
Lists the news
List news
.DESCRIPTION
This PowerShell script lists the latest news by using RSS (Really Simple Syndication) feeds.
.PARAMETER RSS_URL
@ -36,7 +36,7 @@ try {
$Date = $Date -Replace "Sat, ",""
$Date = $Date -Replace "Sun, ",""
$Copyright = $Content.rss.channel.copyright
"<$Source|$Date|$Copyright>"
"($Source|$Date|$Copyright)"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"