Enjoy German HD-Streams (1 Viewer)

Pekabo

Portal Member
March 20, 2011
17
1
Home Country
Germany Germany
First off all I am new to MediaPortal, so please be kind I enjoy a 'puppy license'.

I run my HTPC with this nice peace of Software since 2 weeks and I can´t imagine how I could live without before! My favorite PlugIn is "OnlineVideos" the only thing that I missed was a good HD-Streaming site. I found the OnlineVideos.SiteCreator and did it by my self with one of my favorite site. I test it several times and what I can say it works!

Here my contribution to the community :)

Code:
    <Site name="HD-Box" util="GenericSite" agecheck="false" enabled="true" lang="de" player="WMP">
      <Description>HD-Box Filme in HD Qualität!</Description>
      <Configuration>
        <item key="dynamicCategoriesRegEx"><![CDATA[<h2\sclass="title">\s*<a\shref="(?<url>[^"]*)"\stitle="(?<title>[^"]*)">]]></item>
        <item key="videoListRegEx"><![CDATA[<div\sclass="pos-media\smedia-center">\s*<a\shref="(?<VideoUrl>[^"]*)"\s*title="(?<Title>[^"]*)">\s*<img\ssrc="(?<ImageUrl>[^"]*)"]]></item>
        <item key="nextPageRegEx"><![CDATA[<a\sclass="next"\shref="(?<url>[^"]*)">&gt;&nbsp;</a>]]></item>
        <item key="playlistUrlRegEx"><![CDATA[<iframe\sstyle='overflow:\shidden;\sborder:\s0;\swidth:\s655px;\sheight:\s395px'\ssrc='(?<url>[^']*)'\sscrolling='no'></iframe>]]></item>
        <item key="fileUrlRegEx"><![CDATA[\('file','(?<m0>[^']*)'\);]]></item>
        <item key="baseUrl"><![CDATA[http://hd-box.org/index.php?option=com_zoo&view=category&Itemid=33]]></item>
      </Configuration>
      <Categories>
        <Category xsi:type="RssLink" name="Aktuelle Filme">http://hd-box.org/index.php?option=com_zoo&amp;view=category&amp;Itemid=41</Category>
        <Category xsi:type="RssLink" name="Alle Filme">http://hd-box.org/index.php?option=com_zoo&amp;view=category&amp;Itemid=3</Category>
      </Categories>
    </Site>

Procedure in the PlugIn:
In the OnlineVideos List under "HD Box" you find will find all categories. On the next page you see a videolist with covers but no description information or duration. a click on the video will start the movie.

Maybe someone would be so kind and could help me with my problem!

The structure of the site HD-Stream site ist not 100% comparable to the OnlineVideos.SiteCreator. There ist a categorie site, after a clik on a categorie YOu find a list with videofiles and a next page button. What I miss on this site is a description and a duration. If I click on a video inside th videolist a new page opens with all the information I need, on this page is no next page button because it makes no sence, it is just a page for a single video with all the information and several stream players.

I thought it would be smart to use the subcategories for the videolist so I did. Everythink workes perfeckt all information was there decriptions ,covers, durations, and all the video starts perfeckt. But after I while I saw that I can´see all videos because I can´t use the next button. :eek: because regexp search for this button on the single video page and not on the subcategorie page (remember this is my videolist).

  1. Has someone a Idea how I can fix this.
  2. If there is a comma in the discription the grabbing of this text fails, how can I solve this? I can´t just grab the discription till the first comma.
  3. Can some give me hint/tutorial/sample code how to programm a Site Util in c#.

Thanks in advanced
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    Alway nice to see more people are (trying to) adding sites to onlinevideos!.

    The issues with the description etc are a bit difficult.
    Due to the structure of the generic part of onlinevideos the videolist is parsed from 1 html-page, and as such it isn't possible to fetch other information from different html pages.
    However, if you are able to make your own util (source) you can implement this behaviour yourself.
    The drawback of parsing a lot of html-pages to get the extra info for each video, is that it's going to take some time for the plugin to build the video-list, but you'll see if it's acceptable after you have created your util.

    I think, in your case, what can be done is create a new util, derived from genericsiteutil and override the getvideolist method.
    There, first call base.getvideolist, and after that a foreach (VideoInfo video in videolist) { fetch video-page and parse description etc}
     

    cubii

    Portal Pro
    November 1, 2006
    627
    32
    48
    AW: Enjoy German HD-Streams

    Doesnt work anymore ... (with mp 1.2beta) could you update it?
    Thanks cubii
     

    Users who are viewing this thread

    Top Bottom