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
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. because regexp search for this button on the single video page and not on the subcategorie page (remember this is my videolist).
Thanks in advanced
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>[^"]*)">> </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&view=category&Itemid=41</Category>
<Category xsi:type="RssLink" name="Alle Filme">http://hd-box.org/index.php?option=com_zoo&view=category&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. because regexp search for this button on the single video page and not on the subcategorie page (remember this is my videolist).
- Has someone a Idea how I can fix this.
- 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.
- Can some give me hint/tutorial/sample code how to programm a Site Util in c#.
Thanks in advanced