New site and site request (1 Viewer)

Maschine

Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Hi,

    I added a new "site" (actually it's just a podcast) to my Onlinevideos and thought I could share it. It's StartCooking.com (english) which offers some nice and short cooking tutorials. I added standard and HD quality, though the HD rss doesn't seem to be updated as regular as the other one. If you want to add it, add these lines to your OnlineVideoSites.xml:

    Code:
        <Site name="StartCooking" util="GenericSite" agecheck="false" enabled="true" lang="en">
          <Username />
          <Password />
          <SearchUrl />
          <Categories>
            <Category xsi:type="RssLink" name="Start Cooking video" thumb="http://startcooking.com/images/feedVideo144.jpg">http://feeds2.feedburner.com/KathyMaistersStartCookingVideoCast</Category>
            <Category xsi:type="RssLink" name="Start Cooking video HD" thumb="http://startcooking.com/images/feedVideo144.jpg">http://feeds.feedburner.com/StartCookingHD720p</Category>
          </Categories>
        </Site>

    This was easy to integrate as they offer a podcast/rss url. I have another site I'd like to add which seems to be harder to integrate: Chefkoch TV (again a cooking site ;), german only) is updated every month with 2 or 3 videos. I didn't look at the sources of this plugin yet, but I think there is some kind of parser needed to get videos and their descriptions from the site?!?

    offbyone, do you have an idea how this could be done best? Maybe you can find an easy way to get all videos from this site.

    Thanks!
    Maschine
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Do you know how to work with Regular Expressions? The easiest way to get a html site supported is by parsing their html with a RegExp that returns the infos needed for the plugin. You can look at the NBA util for example, but many other also use this.
     

    Andrjs

    Portal Member
    June 30, 2009
    37
    1
    Home Country
    Italy Italy
    Hi offbyone,

    is it possible have an example of RegExp that you used with Nba site? This could me help to set a few sites into onlinevideo by myself.

    I mean, I had a look to the Nbautil and I saw the regexp, but I don't understand how to localize this expression and which
    program I have to use to parsing the
    site.

    Thank you very very much!
     

    Andrjs

    Portal Member
    June 30, 2009
    37
    1
    Home Country
    Italy Italy
    You have answered too fast (thanks for this) before updating my post.
    I had a look to NbaUtil.cs and I saw the regexp. Could you suggest me which program I have to use this the regexp to parsing the site, after this I promise you no more stress.

    Thanks a lot!!!
     

    Users who are viewing this thread

    Top Bottom