UK Sites ITV.com, 4OD, 5 on demand. (1 Viewer)

Bogwitch

New Member
January 1, 2011
4
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
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    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)
     

    Bogwitch

    New Member
    January 1, 2011
    4
    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
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    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.
     

    Bogwitch

    New Member
    January 1, 2011
    4
    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!
     

    wonkyd

    Retired Team Member
  • Premium Supporter
  • August 29, 2007
    792
    177
    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!

    Did you have much luck with this Bogwitch?
     

    Bogwitch

    New Member
    January 1, 2011
    4
    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!
     

    chris123

    Portal Pro
    May 31, 2008
    57
    16
    Home Country
    United Kingdom United Kingdom
    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
     

    revs

    MP Donator
  • Premium Supporter
  • February 1, 2007
    1,274
    72
    The Sauce of Worcester
    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.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    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.
     

    Users who are viewing this thread

    Top Bottom