new-blogentry -topic "Powershell and More"

My observations about Powershell, Windows, System Center and life.

Recent comments

Tags

Don't show

    Disclaimer

    Any opinions expressed herein are completely accidental. But if one happens to slip in, it represents my own personal opinion and NO one elses. I'm also not concerned with changing anyone elses opinion, so any rants about anything presented on this site are likely to be 100% ignored.

    © Copyright 2010

    Managing Podcasts with Powershell (Part 1)

    I've never before embraced the idea of listening to podcasts on a regular basis. With the recent purchase of an MP3 Player, it's garnered more of my interest. Unfortunately, I haven't stumbled on an automated approach to manage getting the downloaded podcasts synced to my player. I'm a creature of great laziness and would quickly lose interest in podcasts unless I find a way dump new episodes to my player with as little effort as possible.

    I could probably find a client somewhere (iTunes? WinAmp?)... but what fun would that be?

    I decided to play with the built in RSS Platform that's included as a part of Internet Explorer 7 (as such, IE 7 must be installed on your system). The RSS Platform includes a COM object which we can utilize from Powershell with ease. You could also use the FEED provider from PSCX if you chose.

    Once you subscribe to the feed using IE7, view the Feed Properties and make sure you have the 'Automatically download attached files' option checked and set a reasonable limit for 'Keep the most recent items only'. I set my limit at 3 items. Keep in mind that if you totally automate this as I have, every podcast will be synchronized to your MP3 device which may have limited space.

    feed01

    Give the system some time to download your enclosures in the background.

    Now, we run into the downside of using IE7's RSS Platform. It stores the enclosures in an obscure folder under the Temporary Internet Files. Let's take a peek at the object that will let us dive into the RSS Platform and find these mysterious enclosure folders.

    $feeds = (New-Object -ComObject Microsoft.FeedsManager).RootFolder
    $feedpodcast = $feeds.GetSubfolder('Podcasts')

    I store all of my Podcasts in a folder off the root of the FEED listing called 'Podcasts'. The second line is getting the object that represents that level of feed listings.

    We can get a list of all feeds in this folder using this:

    66> $feedpodcast.feeds
    Type     Name                                             ItemCount UnreadItemCount
    ----     ----                                             --------- ---------------
    feed     Adventures of Superman Podcast                          47               0
    feed     Batman Adventures                                       25               0
    feed     British Science Fiction Podcast                          3               0
    feed     Hanselminutes                                            3               0
    feed     Mind Of Root                                             3               0
    feed     PowerScripting Podcast                                   3               0
    feed     PowerShell Basics                                        3               0
    feed     Science Fiction Theater Podcast                         58               0
    feed     Scifi Friday                                             3               0
    feed     X Minus One Podcast                                     46               0
    feed     .NET Rocks!                                              3               0
    67> 

    Now, let's find the enclosure path:

    84> $($feedpodcast.feeds)[5]  | fl Name,Url,LocalEnclosurePath,DownloadEnclosuresAut
    omatically
    
    
    Name                            : PowerScripting Podcast
    Url                             : http://feeds.feedburner.com/Powerscripting
    LocalEnclosurePath              : C:\Users\gaurhoth\AppData\Local\Microsoft\Window
                                      s\Temporary Internet Files\Enclosure\{1BA818DF-D3
                                      C1-447D-A57F-8097CD250521}
    DownloadEnclosuresAutomatically : True
    
    
    
    85> 

    Now we know where to find the downloaded podcast files. Whew. Armed with this, we'll be able to write a script that will tie in all of these Enclosure Paths into a single parent folder so that Windows Media Player can monitor and sync to my player. I'll save that for the next part.

    Gaurhoth


    Posted by gaurhoth on Saturday, March 29, 2008 7:47 PM
    E-mail | Permalink | Comments (20) | Post RSSRSS comment feed

    Related posts

    Comments

    free game online

    Friday, November 27, 2009 1:08 PM

    free game online

    I really enyojed this wonderful article. Please keep it up. Regards from John.

    Cheap auto insurance quotes us

    Wednesday, December 02, 2009 11:29 AM

    Cheap auto insurance quotes

    I really enyojed this wonderful article. Please keep it up. Regards from John.

    Article Friendly gb

    Monday, December 07, 2009 5:53 PM

    Article Friendly

    We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!

    watch west wing us

    Thursday, December 10, 2009 1:59 AM

    watch west wing

    Nice work. Very informative article. I will love to bookmark you for the future preferences. Thanks for sharing.




    Regards
    Oatman

    stop snoring us

    Friday, December 11, 2009 2:01 AM

    stop snoring

    Thank you very much for the information provided! I was looking for this data for a long time, bit I was not able to find the trusted source

    Regards
    Jackson


    resveratrol 100 us

    Friday, December 11, 2009 4:51 PM

    resveratrol 100

    Salut!, This page is enjoyable and so is how the matter was expanded. I like some of the comments as well even though I would suggest we remain on the topic so that to add value to the message. It will be also encouraging to the writer if we all could pass it around (for those who have social accounts such as a digg, twitter,..). Thanks again.

    Carroll B. Merriman gb

    Friday, December 11, 2009 7:17 PM

    Carroll B. Merriman

    Great blog - Just subscribed to your RSS feed.. Thanks

    Real Estate in Provo Utah us

    Saturday, December 12, 2009 2:00 AM

    Real Estate in Provo Utah

    this is nice information need to know more




    Regards
    Swenson


    Abercrombie & Fitch

    Saturday, December 12, 2009 7:56 PM

    Abercrombie & Fitch

    thank you!

    ed hardy

    Saturday, December 12, 2009 7:56 PM

    ed hardy

    Good!

    dog lookout us

    Monday, December 14, 2009 6:38 AM

    dog lookout

    I would like to read more of your blogs and to share my thoughts with you


    Regards
    Haynes




    Watch Friends online us

    Tuesday, December 15, 2009 2:07 AM

    Watch Friends online

    Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It's always nice when you can not only be informed, but also entertained! I'm sure you had fun writing this article.



    Regards
    Redmond




    Photo to Pop Art us

    Tuesday, December 15, 2009 6:11 AM

    Photo to Pop Art

    This is the best post on this topic i have ever read.




    Regards
    Weston

    double sim mobile us

    Wednesday, December 16, 2009 3:02 AM

    double sim mobile

    where do i get more information on this




    Regards
    Wojtowicz


    pet car carriers us

    Saturday, December 19, 2009 1:47 AM

    pet car carriers

    i would love to read more from you on this




    Regards
    Sing

    resveratrol supplement us

    Saturday, December 19, 2009 7:04 PM

    resveratrol supplement

    Seasons greetings to all of you and best wishes for the coming year 2010. Great way to explain it. Can't say more than to appreciate what you are penned down. can you show how to grab your rss feed? I couldn't find how.

    usa online casinos us

    Monday, December 21, 2009 8:29 AM

    usa online casinos

    I was looking for crucial information on this subject. The information was important as I am about to launch my own portal. Thanks for providing a missing link in my business.

    vigrx plus us

    Saturday, December 26, 2009 4:48 PM

    vigrx plus

    The presence of such high quality posts is very rare these days over the internet. I personally liked the information

    Trey us

    Sunday, December 27, 2009 6:43 AM

    Trey

    You made some good points there. I did a search on the topic and found most people will agree with your blog.

    Yahir us

    Sunday, December 27, 2009 11:11 AM

    Yahir

    Interesting information. May I add this blog to my linkexchange directory ?

    Add comment


    (Will show your Gravatar icon)  

    [b][/b] - [i][/i] - [u][/u]- [quote][/quote]