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,583
    2,972
    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,583
    2,972
    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
    638
    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
    979
    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
    2K
    MP1 MP2 MP2 - V2.5 No genres after upgrade to 2.5 DE
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and music are part of the NET6 version as for NET4. If you have issues with it further infos would be good.
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and...
    Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System...
    Replies
    10
    Views
    1K
    Thanks for your reply. In my configuration this setting is set to "no". To avoid misunderstandings, the MP window size changes on screen resolution changes, MP always fulfills the whole screen. Also, the home screen buttons size is adjusted. Only the font size is not adjusted to the new screen resolution.
    Thanks for your reply. In my configuration this setting is set to "no". To avoid misunderstandings, the MP window size changes on...
    I use two monitors - a large display for TV and video watching and a small display for music playback, to get the current track...
    Replies
    2
    Views
    606
    Top Bottom