mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 09:50:02 +01:00
Updated watch-news.ps1
This commit is contained in:
parent
e9f0f17180
commit
e52d80980c
@ -42,7 +42,7 @@ function PrintLatestHeadlines([xml]$content, [string]$latestTimestamp, [string]$
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
[xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content
|
[xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content
|
||||||
$title = $content.rss.channel.title
|
$title = $content.rss.channel.title.toUpper()
|
||||||
$link = $content.rss.channel.link
|
$link = $content.rss.channel.link
|
||||||
Write-Host "`n UTC $title - " -noNewline
|
Write-Host "`n UTC $title - " -noNewline
|
||||||
Write-Host $link -foregroundColor blue
|
Write-Host $link -foregroundColor blue
|
||||||
|
Loading…
Reference in New Issue
Block a user