mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-28 01:28:50 +01:00
Update list-headlines.ps1 and list-news.ps1
This commit is contained in:
parent
72f4252674
commit
16bb5e7fdb
@ -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 }
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user