Fernsehkritik.tv - GenericSite or does it need a siteutil ? (1 Viewer)

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    I guess I have a pretty simple page, but do not get it working completely.

    Mainly there are two categories:
    The VideoURL for an episode is:
    Code:
    http://fernsehkritik.tv/folge-{0}/Start/

    The code which contains the video links for newer episodes is:
    Code:
    		document.getElementById('flashh').innerHTML = "Folge 113 vom 27. April 2013	<span id=\"flashtoggle\" style=\"font-size:11px;\"><a href=\"../\">stoppen...<"+"/a><"+"/span>";
    		var base = 'http://fernsehkritik.tv/js/directme.php?file=';
    		var ep = 113;
    		var onStartJump = false;
    	 
    	 
    		playlist = [ { url: base + '113.flv' },
    						{ url: base + '113-2.flv' },
    						{ url: base + '113-3.flv' }];
    The code which contains the video links for older episodes is:
    Code:
    		var base = 'http://fernsehkritik.tv/js/directme.php?file=';
    		var ep = 51;
    		var onStartJump = false;
    	 
    				playlist = [{ url: base + ep + '.flv' }];

    I don't get a regex, which works for both, older and new format. I also have the problem that new episode are split into 3 parts. Is it possible to generate a "hidden" playlist?
    Do I need to code a siteutil for this?
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Basically the generic site can output multiple files that were matched by a regex. However, the way the links are provided in the HTML, I think you need a new Util in C#. But a very small one, inherit from GenericSiteUtil and simply override getMultipleVideoUrls method and implement the logic to get those links in there.
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Regular expressions are not my best buddies :(

    Nevertheless, attached you can find an update. This includes a siteutil and also parsing of the description.

    This also reminded me again that I would like to see some more details in MP2 OSD, like description / plot and airsdate (in general, for series and movies, too, not only for onlinevideos).
    Neverthless did I already tell you how much I love this plugin? I don't even need any classic TV card / feature ;)
     

    Attachments

    • OnlineVideos.7z
      3.4 KB

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Can you do the integration into OnlineVideos source code as well as pushing to the update server?

    Having no SVN client installed anymore ;)
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Added to SVN and new Site published!
    Did a minor fix to the xml definition inside the Configuration element:
    Code:
    <item key="forceUTF8Encoding"><![CDATA[true]]></item>
    In MP1 you can see all the infos and the encoding was wrong (strange character). This setting overrides any encoding to use Utf-8 for the retreived data. Now it looks correct ;)

    Thanks for the support (and the kind words)!

    The additional infos are truly needed in MP2, it's on my list but I am not yet sure how to do it best ;)
     

    Users who are viewing this thread

    Top Bottom