[Solved] Video Mediaset new website (1 Viewer)

cecet23

MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    Code:
    <Site name="Video Mediaset" util="VideoMediaset" agecheck="false" enabled="true" lang="it">
      <Configuration>
    	<item key="dynamicSubCategoriesRegEx"><![CDATA[<a\shref="(?<url>[^"]*)"\sonclick="[^"]*">(?<title>[^<]*)</a>|<option\sselected\svalue="(?<url>[^"]*)">(?<title>[^<]*)</option>|<option\svalue="(?<url>[^"]*)">(?<title>[^<]*)</option>]]></item>
    	<item key="dynamicSubCategoryUrlFormatString"><![CDATA[http://www.video.mediaset.it{0}]]></item>
    	<item key="dynamicSubCategoriesNextPageRegEx"><![CDATA[<a\stitle="Vai\salla\spagina\ssuccessiva"\shref="(?<url>[^"]*)">&raquo;</a>]]></item>
    	<item key="videoListRegEx"><![CDATA[<a\stitle="(?<Description>[^"]*)"\shref="(?<VideoUrl>[^"]*)"\srel="nofollow"><img\salt="[^"]*"\ssrc="(?<ImageUrl>[^"]*)"></a>\s*</div>\s*<p\sclass="[^"]*">\s*<a\stitle="(?<Title>[^"]*)"\shref="[^"]*"\srel="nofollow"\sonclick="j[^"]*">[^"]*</a>\s*</p>\s*<h2>\s*<a\stitle="[^"]*"\shref="[^"]*"\srel="nofollow">[^"]*</a>\s*</h2>\s*<p\sclass="desc">[^"]*</p>\s*<div\sclass="infovideo">\s*<p\sclass="tipo">\s*<span>[^"]*</span>\s*</p>\s*<p\sclass="intv">In\sTv:\s<span>[^<]*</span>\s*</p>\s*<p\sclass="durata">[^"]*<span>(?<Duration>[^<]*)</span>\s*</p>]]></item>
    	<item key="nextPageRegEx"><![CDATA[<a\stitle="Vai\salla\spagina\ssuccessiva"\shref="(?<url>[^"]*)">&raquo;</a>]]></item>
    	<item key="playlistUrlRegEx"><![CDATA[var\svideoMetadataId\s=\s'(?<url>[^']*)';]]></item>
    	<item key="playlistUrlFormatString"><![CDATA[http://lazzavd.byethost11.com/script/vd.php?id={0}]]></item>
    	<item key="fileUrlRegEx"><![CDATA[<video\ssrc="(?<m0>[^"]*\.(?<n0>[mp4]*))"/>|<video\ssrc="(?<m0>[^"]*\.(?<n0>[wmv]*))"/>]]></item>
      </Configuration>
      <Categories>
    	<Category xsi:type="RssLink" name="Puntate Intere">http://www.video.mediaset.it/puntate-intere/puntate-intere.shtml</Category>
    	<Category xsi:type="RssLink" name="Clip Intrattenimento">http://www.video.mediaset.it/clip/intrattenimento.shtml</Category>
    	<Category xsi:type="RssLink" name="Clip News">http://www.video.mediaset.it/clip/news.shtml</Category>
    	<Category xsi:type="RssLink" name="Clip Sport">http://www.video.mediaset.it/clip/sport.shtml</Category>
    	<Category xsi:type="RssLink" name="Più visti di ieri">http://www.video.mediaset.it/piu-visti/piuvisti-ieri.shtml</Category>
    	<Category xsi:type="RssLink" name="Più visti della settimana">http://www.video.mediaset.it/piu-visti/piuvisti-settimana.shtml</Category>
    	<Category xsi:type="RssLink" name="Più visti del mese">http://www.video.mediaset.it/piu-visti/piuvisti-mese.shtml</Category>
    	<Category xsi:type="RssLink" name="MotoGp">http://www.video.mediaset.it/programma/motogp/archivio-video.shtml</Category>
    	<Category xsi:type="RssLink" name="Sport">http://www.video.mediaset.it/programma/sportmediaset/archivio-video.shtml</Category>
      </Categories>
    </Site>
    <Site name="Programmi Video Mediaset" util="ProgrammiVMediaset" agecheck="false" enabled="true" lang="it">
      <Configuration>
    	<item key="dynamicCategoriesRegEx"><![CDATA[<a\shref="(?<url>[^"]*)"\sonclick="[^"]*">(?<title>[^<]*)</a>]]></item>
    	<item key="dynamicCategoryUrlFormatString"><![CDATA[http://www.video.mediaset.it{0}]]></item>
    	<item key="dynamicSubCategoriesRegEx"><![CDATA[<a\shref="(?<url>[^"]*)"\sonclick="[^"]*">(?<title>[^<]*)</a>|<option\sselected\svalue="(?<url>[^"]*)">(?<title>[^<]*)</option>|<option\svalue="(?<url>[^"]*)">(?<title>[^<]*)</option>]]></item>
    	<item key="dynamicSubCategoryUrlFormatString"><![CDATA[http://www.video.mediaset.it{0}]]></item>
    	<item key="dynamicSubCategoriesNextPageRegEx"><![CDATA[<a\stitle="Vai\salla\spagina\ssuccessiva"\shref="(?<url>[^"]*)">&raquo;</a>]]></item>
    	<item key="videoListRegEx"><![CDATA[<a\stitle="(?<Title>[^"]*)"\shref="(?<VideoUrl>[^"]*)"\srel="nofollow"><img\salt="(?<Description>[^"]*)"\ssrc="(?<ImageUrl>[^"]*)"></a>]]></item>
    	<item key="nextPageRegEx"><![CDATA[<a\stitle="Vai\salla\spagina\ssuccessiva"\shref="(?<url>[^"]*)">&raquo;</a>]]></item>
    	<item key="playlistUrlRegEx"><![CDATA[var\svideoMetadataId\s=\s'(?<url>[^']*)';]]></item>
    	<item key="playlistUrlFormatString"><![CDATA[http://lazzavd.byethost11.com/script/vd.php?id={0}]]></item>
    	<item key="fileUrlRegEx"><![CDATA[<video\ssrc="(?<m0>[^"]*\.(?<n0>[mp4]*))"/>|<video\ssrc="(?<m0>[^"]*\.(?<n0>[wmv]*))"/>]]></item>
    	<item key="baseUrl"><![CDATA[http://www.video.mediaset.it/programmi/]]></item>
      </Configuration>
    </Site>

    Hi folks,
    I solved, I wrote 2 siteutils and a bit of regex that I attach on the thread. I hope it can be inserted in the next release.
    If someone will check if everything is fine.

    The only think that I'm not able to do, is the search. If someone have a suggestion it will really appreciated.

    Thank you

    I attached siteutils *.cs in zip file
     

    Attachments

    • siteutils.zip
      2.4 KB
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    You can publish your sites all on your own. No need to wait for a release!
    Just go into OV config, select your site and press the publish icon above. It will upload your dll and xml and icons, so all other users can add it to their collection.
    Only thing you really need is a Description in your site xml.
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    I think so (and I hope so), for future updates, how can I do? In the same way? Just push publish icon ?

    Thank you
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Yes - simply do the same thing again, it checks if you are the owner of the site and overwrites if the DLL, icon, xml is changed :)
     

    Users who are viewing this thread

    Top Bottom