OnlineVideos - wimp.com (1 Viewer)

octessence

Portal Pro
May 8, 2012
76
10
Germany
Home Country
United Kingdom United Kingdom
Pretty much the only thing I use xbmc for is the wimp.com addon.

Is it possible to add wimp.com to OnlineVideos?
 

wredefine

New Member
May 21, 2013
2
0
Home Country
United States of America United States of America
Funny, I was just working on this tonight. Both wimp.com and dump.com encode the video URLs in Base64 which I don't believe that the Generic Site Util can deal with, as I couldn't find any reference to a decoder. Not sure how to carry this forward, as I'm in the same boat as you - these are about all I use XBMC for anymore.
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    We can write a small c# util that decodes this. Can you post what you have so far?
     

    wredefine

    New Member
    May 21, 2013
    2
    0
    Home Country
    United States of America United States of America
    Thanks, that would be awesome!! This was my first attempt at adding a site, so here's what I have so far covering both wimp.com and dump.com:

    Code:
    	<Site name="dump.com" util="GenericSite" agecheck="false" enabled="true" lang="en">
    	  <Description>Family friendly videos.</Description>
    	  <Configuration>
    		<item key="dynamicSubCategoriesRegEx"><![CDATA[<a\sclass="b"\shref="(?<url>[^"]*)">(?<title>[^<]*)</a><br/>]]></item>
    		<item key="dynamicSubCategoryUrlFormatString"><![CDATA[http://www.dump.com{0}]]></item>
    		<item key="videoListRegEx"><![CDATA[<a\sclass="b"\shref="(?<VideoUrl>[^"]*)"\sstyle="padding-bottom:6px;"><img\sclass="thumbnail"\ssrc="/images/grey\.gif"\sdata-original="(?<ImageUrl>[^"]*)"><span\sclass="video_title">(?<Title>[^<]*)</span><br><span\sclass="video_date">(?<Airdate>[^<]*)</span></a>]]></item>
    		<item key="videoListRegExFormatString"><![CDATA[http://www.dump.com{0}]]></item>
    		<item key="playlistUrlRegEx"><![CDATA[<input\stype="text"\sname="url"\svalue="(?<url>[^"]*)"]]></item>
    		<item key="searchUrl"><![CDATA[www.dump.com/search]]></item>
    		<item key="baseUrl"><![CDATA[www.dump.com]]></item>
    	  </Configuration>
    	  <Categories>
    		<Category xsi:type="RssLink" name="Current Videos" desc="The latest videos.">http://www.dump.com</Category>
    		<Category xsi:type="RssLink" name="Archive" desc="Videos from previous months.">http://www.dump.com/archives/</Category>
    	  </Categories>
    	</Site>
    	<Site name="wimp.com" util="GenericSite" agecheck="false" enabled="true" lang="en">
    	  <Description>Updated daily.  Best videos on the Web. Suitable for all ages.</Description>
    	  <Configuration>
    		<item key="dynamicSubCategoriesRegEx"><![CDATA[<a\sclass="b"\shref="(?<url>[^"]*)">(?<title>[^<]*)</a><br/>]]></item>
    		<item key="dynamicSubCategoryUrlFormatString"><![CDATA[http://www.wimp.com{0}]]></item>
    		<item key="videoListRegEx"><![CDATA[<span\sclass="video_date">(?<Airdate>[^<]*)</span>\s-\s<a\sclass="b"\shref="(?<VideoUrl>[^"]*)">\s*(?<Title>[^<]*)</a><br/>]]></item>
    		<item key="videoListRegExFormatString"><![CDATA[http://www.wimp.com{0}]]></item>
    		<item key="fileUrlRegEx"><![CDATA[<input\stype="text"\sname="url"\svalue="(?<m0>[^"]*)"]]></item>
    		<item key="searchUrl"><![CDATA[www.wimp.com/search]]></item>
    		<item key="baseUrl"><![CDATA[www.wimp.com]]></item>
    		<item key="getRedirectedFileUrl"><![CDATA[True]]></item>
    	  </Configuration>
    	  <Categories>
    		<Category xsi:type="RssLink" name="Current Videos" desc="The latest videos.">http://www.wimp.com</Category>
    		<Category xsi:type="RssLink" name="Archive" desc="Videos from previous months.">http://www.wimp.com/archives/</Category>
    	  </Categories>
    	</Site>
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,630
    3,044
    Nuenen
    Home Country
    Netherlands Netherlands
    Or add base64 and possible json to the decode list?
    Till the next release, he'll have to use a util, but after that, it can be disposed of.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,630
    3,044
    Nuenen
    Home Country
    Netherlands Netherlands
    You have to program this in visual studio. Sourcecode is found here, remember, if you base your util on genericsite, you only have to override the method where the base64 decoding has to be done
     

    Users who are viewing this thread

    Similar threads

    MP2.5 has the latest OnlineVideo version. But as it was stated, that error will be possibly fixed in a future version, it will have the same problem as you face now.
    MP2.5 has the latest OnlineVideo version. But as it was stated, that error will be possibly fixed in a future version, it will have...
    The iPlayer link in Onlinevideos is only showing the last program in the series. For example 'The Traitors' only shows the final...
    Replies
    3
    Views
    816
    Hey doskabouter, Thanks for the quick fix! Works like a charm now Still staying true to MePo. I know development may be kind of slow on some parts, but no reason for me to give up. Been using it for years now and it never failed me. Only wish I had the skill set to help out.
    Hey doskabouter, Thanks for the quick fix! Works like a charm now Still staying true to MePo. I know development may be kind of...
    For anyone that may have a clue and a pointer to help me out here; Just tried to enable the login function for the YouTube site...
    Replies
    2
    Views
    1K
    MP1 MP2 MP2 - V2.5 Media Source DE
    @Brownard, just a stupid question. Yes it works now by manually entering the path. However when i try to edit the settings (like because i want to disable the share watch) I can select my Media Source, however i seems to only briefly been shown and the goes back to the list. So i cannot actually edit it. Can et bee due to the "long"...
    @Brownard, just a stupid question. Yes it works now by manually entering the path. However when i try to edit the settings (like...
    I had to replace my NAS and after reinstalling a new one i thought. Lets modify the Media Source. - However that did not work "if"...
    Replies
    25
    Views
    3K
    Using version 1.32: no problems at all.
    Using version 1.32: no problems at all.
    The automatic refresh rate changeover suddenly stopped working for me. Everything worked perfectly the whole time. I didn't change...
    Replies
    6
    Views
    630
    • Sticky
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in driving the development of an advanced HTPC software? Would you like new features get implemented faster? Well, then join us! What we offer: Almost unlimited creative leeway The possibility to closely...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Replies
    0
    Views
    6K
    Top Bottom