Help creating LoveFilm genereic site please! (1 Viewer)

goodlivin

Portal Member
November 11, 2011
5
4
Home Country
United Kingdom United Kingdom
Hi,

I'm making a start on a LoveFilm plugin for MediaPortal Here is the project: (MPLF) MediaPortal LoveFilm Plugin

I have just created it and I will be making a start in a couple of weeks. I havent yet found any open shared plugins that I can contribute to so I have created one. Does any one manage one? If not, It would be lovely if you would join me on getting this started.
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,555
    2,921
    Nuenen
    Home Country
    Netherlands Netherlands
    Quite ambitious, that wishlist...

    You could also try to integrate it in onlinevideos. Not quite *that* amount of possibilities, but you do have an existing framework/skins on which to base your project
     

    FlipGer

    Retired Team Member
  • Premium Supporter
  • April 27, 2004
    2,658
    115
    48
    Leipzig, Germany
    Home Country
    Germany Germany
    Hiho,

    first of all thanks for the great OnlineVideos plugin.

    Since the VoD of Lovefilm gets better and better I thought it would be nice to have it inside MP. So I stumpled across this thread. Sad to see, that it is sleeping currently. So I decided to have a look into it.

    I managed to create a Siteparser for lovefilm.de VoD ("Teil des Ausleihpaketes"). I can browse through the genres. Really nice, the SiteParser is working quite well, especially when looking into the provided vid.

    But I fear playback will be an big issue, because lovefilm uses Silverlight :eek: and loads the player via JavaScript and Ajax into its site :mad:.

    So my questions are:
    • Is Silverlight supported by OnlineVideos at all?
    • Are there sites / examples using Silverlight to get a peek into it?
    • Are there sites / examples parsing JavaScript and Ajax?
    • If nothing of this works, would it be possible to Open IE with the URL of the videosite?
    I will have to take a look into the login process as mentioned above with a own SiteUtil. My C# knowledge is somewhat burried, but perhaps it will work. Main blocker will be my short spare time. ;)
    I fear the lovefilm API is a dead end currently. Because lovefilm does not provide any information at all anymore and the API was only for lovefilm.com.
    At least you can browse through lovefilm.de:
    Code:
    <Site name="Lovefilm" util="GenericSite" agecheck="false" enabled="true" lang="de">
      <Description>Lovefilme - VoD Teil des Ausleihpaketes</Description>
      <Configuration>
        <item key="dynamicCategoriesRegEx"><![CDATA[(?<!<span\s>Produktionsdekade</span>\s*<.*)(?<=<span\s>Genre</span>\s*.*)li>\s*<a\shref="(?<url>[^"]*)"\stitle="([^"]*)"><span\sclass='facet_link'>(?<title>[^<]*)</span>\s*<span\sclass='facet_results\s]]></item>
        <item key="videoListRegEx"><![CDATA[<div\sid="ajaxItemRow[^"]*"(?:(?!<img).)*<img\sref="[^"]*"\ssrc="(?<ImageUrl>[^"]*)"(?:(?!<div\sclass="fl_detail_info").)*<div\sclass="fl_detail_info">\s*<h2><a\shref="(?<VideoUrl>[^"]*)"title="[^"]*">(?<Title>[^<]*)</a>\s*<span\sclass="release_decade">\((?<Airdate>[^\)]*)\)</span>\s*</h2>(?:(?!</ul>).)*</ul>\s*<div\sclass="read_more">(?<Description>[^<]*)(?:(?!<div\sclass='clearfix').)*<div\sclass='clearfix'></div>\s*</div>]]></item>
        <item key="nextPageRegEx"><![CDATA[(?<=&lt;\sVorherige.*)(?<!Nächste\s&gt;.*)<li><a\shref="(?<url>[^"]*)"\s*>Nächste\s&gt;</a></li>]]></item>
        <item key="baseUrl"><![CDATA[http://www.lovefilm.de/browse/filme/video-on-demand/teil-des-ausleihpaketes/]]></item>
      </Configuration>
    </Site>
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Silverlight support depends on what actual protocol is used. If you check Onlinevideos SVN trunk, there's a new source filter version that support silverlight smooth streaming. (But not PlayReady Protected Streams).
    In order to play this, all you need to find is the URL to the manifest file. No js or ajax involved.

    As this is really new I have no sample sites where you can peek at it :(

    OnlineVideos currently doesn't offer the option to open IE (this is not really an option as the philosophy is the unified look and feel).
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,555
    2,921
    Nuenen
    Home Country
    Netherlands Netherlands
    ...
    OnlineVideos currently doesn't offer the option to open IE (this is not really an option as the philosophy is the unified look and feel).

    And also it would be really hard to route the play/stop/pause actions through to IE
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I just registered and checked their playback method. They use IIS Smooth Streaming which is supported by our new filter, but they also use DRM Protection (PlayReady) on the streams, which I think we can't ever support with our filter :(
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    I just registered and checked their playback method. They use IIS Smooth Streaming which is supported by our new filter, but they also use DRM Protection (PlayReady) on the streams, which I think we can't ever support with our filter :(
    Correct, there is no free PlayReady specification (you have to pay for specification and also it's no clear that we will be able to implement it in our filter).
     

    FlipGer

    Retired Team Member
  • Premium Supporter
  • April 27, 2004
    2,658
    115
    48
    Leipzig, Germany
    Home Country
    Germany Germany
    Hi,

    I just registered and checked their playback method. They use IIS Smooth Streaming which is supported by our new filter, but they also use DRM Protection (PlayReady) on the streams, which I think we can't ever support with our filter :(

    I feared that. Shit DRM. Hopefully Silverlight will die one day.

    Anyway. Many thanks for taking a look into it. So we have currently to live with it. Well, the listing of the provided films is OK for me. And I will have to take a look into the login process. This is missing and would be great, since the listings depend on which packet you have booked at lovefilm.

    Flip.
     

    Users who are viewing this thread

    Top Bottom