Help creating LoveFilm genereic site please!

Discussion in 'OnlineVideos' started by domb, May 7, 2011.

  1. domb

    domb Portal Pro

    Joined:
    October 30, 2006
    Messages:
    213
    Likes Received:
    7
    Ratings:
    +7 / 0
    Great plug-in by the way and I love the generic site guilder!

    Anyway... i'm trying to build a site for LoveFilm (video rental site in UK). I can list the categories and videos but as I can't enter login details like with youtube I can't see how I view streams.

    Only registered subscribers can view streams as its a rental service.

    How do I enter login details?

    Heres my regex that works for categories and listing videos:



    Categories RegEx
    Code (Text):
    1. (?<=\s*</ul></div>\s*<div\sid="genre"\sclass=''>\s*<h5>\s*<span\s>Genre</span>\s*</h5>\s*<ul>\s*.*)
    2. <a\shref="(?<url>[^"]*)"\stitle="(?<title>[^"]*)"><
    3. (?<!\s*</ul></div>\s*<div\sid="production_decade"\sclass=''>\s*<h5>\s*<span\s>Production\sdecade</span>\s*</h5>\s*<ul>\s*.*)
    VIdeoListRegEx

    Code (Text):
    1. <h2><a\shref="(?<VideoUrl>[^"]*)"title="(?<Title>[^"]*)">(?<Title>[^<]*)</a>\s*<span\sclass="release_decade">\((?<Airdate>[^\)]*)\)</span>\s*</h2>
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    The GenericSiteUtil does not support Login. You'll need to write your own SiteUtil (can be inherited from Generic) in C# for this functionality.
     
  4. domb

    domb Portal Pro

    Joined:
    October 30, 2006
    Messages:
    213
    Likes Received:
    7
    Ratings:
    +7 / 0
    Hmm ok. I have no idea about C#. I f anybody is interested in doing it please let me know...

    I've got categories, video results, next/prev page and search all working fine... but without a login its useless!

    Where can I find the Generic SiteUtil? I've got VisualStudio C# installed so I can at least have a look. thanks.

    EDIT

    I found it in the source code but like I said I have no idea about coding so if somebody would like to help add lovefilm online videos to onlinevideos let me know. Unfortunately I wont be much help!

    OK, quick update...

    I've managed tow ork out a way of passing the username / password in the URL, so no need for using C# :)

    Now I can't work out how to get the video sorce into the generic site creator. I know what the source looks like but as its wrapped in a player it loads after the HTML code has been read by the viewer and I can't see it in the source. ANy ideas?
     
  5. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    There's a playlistUrlRegEx that can be used to make another request to a file holding the actual playback url.
     
  6. domb

    domb Portal Pro

    Joined:
    October 30, 2006
    Messages:
    213
    Likes Received:
    7
    Ratings:
    +7 / 0
    Hi, I still can't get anywhere i with this. Theres a link to an SWF player but the video links are obviously embedded within the player... I can't access those. Any ideas?

    Presumably there is a playlist somewhere as free movies/programmes have ads before them but can't get anywhere with it.

    http://www.lovefilm.com/film/Elizabeth-I-Part-1/132174/

    Thats a free video for viewing... if anybody can somehow exract the video URL for use in OnlineVideos let me know! I was looking at just getting the SWF to playback in ONlineVideos and using a directshow SWF player.

    This is where I am up to now:


    CatRegex
    Code (Text):
    1. (?<=<ul\sclass="drop_down"\sid="watch_online_drop_down">\s*<li\sclass="col">\s*<ul>\s*<li\sclass="first"><strong>Watch\sOnline</strong></li>\s*.*)<li><a\shref="(?<url>[^"]*)">(?<title>[^\s]*)\s</a></li>
    VideoListRegex
    Code (Text):
    1. <h2><a\shref="(?<VideoUrl>[^"]*)"title="(?<Title>[^"]*)"
    PlaylistUrlRegex
    Code (Text):
    1. initUri":"(?<url>[^"]*)"
    PlaylistUrlFormatString
    Code (Text):
    1. http://www.lovefilm.com/static/digital2/player/swf/OnDemandWebPlayer-1.4.1.swf?initUri={0}
    Now if you select 'GetPlaylstUrl' it shows a SWF file that plays the file you want...

    However, I can't then extract the MP4 file from that for playing in MediaPortal, any more ideas?

    Thanks
     
  7. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    751
    Location:
    Nuenen
    Ratings:
    +1,112 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hm, it seems to be geo-restricted. If you're able to setup a vpn, I think I can come up with something...

    That's a really uncool way to login... (from a security/privacy point of view that is)
     
  8. domb

    domb Portal Pro

    Joined:
    October 30, 2006
    Messages:
    213
    Likes Received:
    7
    Ratings:
    +7 / 0
    I know but I can't program and thats the only way I could do it.

    Sorry but no time to set up VPNs etc
     
  9. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    751
    Location:
    Nuenen
    Ratings:
    +1,112 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    That wasn't a comment on *your* skills, but more on the website itself :)

    The only thing I can think of, is searching around in the returned html to see if you find a valid video-url (perhaps with the help of a program like fiddler2).
    On the other hand, it could also be a rtmp-url, and those are a bit harder to spot
     
  10. domb

    domb Portal Pro

    Joined:
    October 30, 2006
    Messages:
    213
    Likes Received:
    7
    Ratings:
    +7 / 0
    It is RTMP. I can technically put together the path,, but just the path won't work as it neeeds to be wrapped in the player as it send tokens etc to satrt playing. I've given up to be honest lol
     
  11. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    751
    Location:
    Nuenen
    Ratings:
    +1,112 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    If you are willing to pm me your login details, I can take a peek at it...
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!