UK Sites ITV.com, 4OD, 5 on demand.

Discussion in 'OnlineVideos' started by Bogwitch, January 1, 2011.

  1. Bogwitch

    Bogwitch New Member

    Joined:
    January 1, 2011
    Messages:
    4
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    United Kingdom United Kingdom
    Hi all,

    I'm new to MediaPortal and I'm greatlyimpressed so far, I was particularly pleased to find the Onlinevideos plugin and to find the BBC iPlayer in there.
    I have noticed in a few threads that people are keen to have access to ITV.com, 4OD and Fie on Demand so I've started to play with the site config in order to get them working. I've got so far but I've reached a point where I guess it would be useful to get the input of others. Here goes....

    baseurl = Shows | Five (hover over to see the exact URL!
    CategoryRegex = <li(?:\sclass="last")?>\s*<a\shref="(?<url>[^"]*)"\sclass="[^"]*">(?<title>[^<]*)</a>\s*</li>

    That all works and on pressing the GetCats button, the categories are populated.

    Moving on to Subcategories,
    SubCategoryRegex = <a\shref="(?<url>[^"]*)"\sclass="clearfix">\s*<span\sclass="thumbnail">\s*<span\sclass="mask">&nbsp;</span>\s*<img\salt="(?<title>[^"]*)"\sheight="82"\ssrc="(?<thumb>[^"]*)"\swidth="145"\s/>\s*<span\sclass="vod">

    This again works, and pressing the GetSubCats button populates the categories with the various shows.

    This is the point where I begin to need some help!

    Each of the SubCats is a program, either a one-off or a series. When it is a series, the URL points to a page where only the most recent three episodes are listed, it is possible to expand the list when browsing and the NextPageRegEx seems to support this but I have failed to get it to work so far - I'll keep trying.

    The final issue, is where do these Regex strings go? There appears to be some similar mames under the 'Advanced' button in the Online Videos Configuration but not one for CategoryRegex, for example.



    If there is a thread where this has been worked through, I have been unble to find it so any pointers to it would be appreciated. If not, if there are users who want to see these UK channels added and are willing to combine with me to get them working, that would be awesome.

    Finally, I have seen a couple of posts referencing a file OnlineVideosSites.xml but I have been unable to locate the file. Is this a file that was used in previous versions of Online Videos or am I defective in some way.

    Oh, and a Happy New Year everyone!

    Bogwitch
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,836
    Likes Received:
    798
    Location:
    Nuenen
    Ratings:
    +1,167 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi Bogwitch,

    Welcome to the forum, and a Happy new year to you too!

    I've created an explanation of how to get things done, maybe your questions are answered there.
    (Just added the location of the onlinevideosites.xml)

    However, if you have more than two levels of categories, the only solution is to write your own util (in C#/.NET)
     
  4. Bogwitch

    Bogwitch New Member

    Joined:
    January 1, 2011
    Messages:
    4
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    United Kingdom United Kingdom
    Hi Doskabouter,

    Thanks for the prompt reply. I had already located the page you referred me to so no additional help but I'll keep trying. If it comes to producing a util, I'm going to struggle as I've not coded much since some old z80 and 6809 assembler and a very small bit of C.

    I was hoping to drum up a bit of local (UK) support since that's where the demand is coming from and hopefully, it will take one or to things off your 'to do' list!

    About the onlinevideosites.xml - I don't appear to have one but my Online Videos plugin functions perfectly. I'e searched my entire hard drie - it's not there!

    [EDIT]
    I have located the file! Interestingly, it was not being found by a Windows search...
    it is in C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal
     
  5. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,836
    Likes Received:
    798
    Location:
    Nuenen
    Ratings:
    +1,167 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Well, maybe someone from over there kicks in, but if you have some spare time...

    It isn't really that hard (at least that's my opininon), if you take a peek at other small utils. But most important is to figure how to get the url of the file to play, because if you don't get that correctly, it's no use putting time in learning the ins and outs of the onlinevideos plugin.
     
    • Like Like x 1
  6. Bogwitch

    Bogwitch New Member

    Joined:
    January 1, 2011
    Messages:
    4
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    United Kingdom United Kingdom
    Thanks again.
    I've been looking at extracting the URL of the video, I'll concentrate my efforts there for now. It's a shame as I now have all these pretty thumbnails for the available shows!
     
  7. wonkyd
    • Premium Supporter

    wonkyd Retired Team Member

    Joined:
    August 29, 2007
    Messages:
    792
    Likes Received:
    167
    Gender:
    Male
    Ratings:
    +184 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Did you have much luck with this Bogwitch?
     
  8. Bogwitch

    Bogwitch New Member

    Joined:
    January 1, 2011
    Messages:
    4
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    United Kingdom United Kingdom
    Hi Wonkyd,

    In a word, no. I have been preparing for an interview which has taken me away from this slightly but I am really struggling to extract the URL of the video. I've even resorted to running up Wireshark to identify the URL but I can find no call within the source HTML. I may be able to give this more time after tomorrow, it depends how the interview goes!
     
  9. chris123

    chris123 Portal Pro

    Joined:
    May 31, 2008
    Messages:
    57
    Likes Received:
    8
    Ratings:
    +19 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I have just started looking at this as well (using seesaw.com to try and cover all the bases), but I'm struggling to get even as far as you.

    If I manage any breakthroughs I'll let you know.

    Cheers

    Chris
     
  10. revs
    • Premium Supporter

    revs MP Donator

    Joined:
    February 1, 2007
    Messages:
    1,274
    Likes Received:
    72
    Occupation:
    Software Developer
    Location:
    The Sauce of Worcester
    Ratings:
    +72 / 0
    Home Country:
    Wales Wales
    I haven't looked at OnlineVideos in ages - didnt realise it did BBC iPlayer (i thought it had broken),

    Well i'll have to look into this again, and if I can i'll try and help out at getting these other channels working.
     
  11. 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
    With 0.28 the 4oD YouTube Channel should be possible, just needs to somehow create a site that gets those channels on Youtube into Onlinevideos using the YouTubeUtil.
     
    • Like Like x 1
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!