Created
September 26, 2019 20:48
-
-
Save shanselman/9a5f73071e41b46dfcf9585ed5e14085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CHECK THE PATH ON LINE 2 and the FEED on LINE 3 | |
cd "C:\users\scott\Downloads" | |
$a = ([xml](new-object net.webclient).downloadstring("https://channel9.msdn.com/Series/CSharp-101/feed/mp4")) | |
$a.rss.channel.item | foreach{ | |
$url = New-Object System.Uri($_.enclosure.url) | |
$file = $url.Segments[-1] | |
$file | |
if (!(test-path $file)) { | |
(New-Object System.Net.WebClient).DownloadFile($url, $file) | |
} | |
} |
Script no longer works as original link been shutdown
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General, more robust, more PS way. Suitable for building a collection of favourite shows/series, e.g. for home entertainment system.