Need help for a site : Very strange problem !

Discussion in 'OnlineVideos' started by titof, February 29, 2012.

  1. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Hi,

    I have a problem for getting video url in a site (Direct8) :

    It's simple :

    - go to this page : http://www.direct8.fr/video/amEzeEhZ/le-flash-29-02-2012/
    - show source code
    - Search for "http://direct8.hexaglobe.com/player-vod-ads.js"
    - If you directly clic in this url, from the source code, you can view the code.
    - if you copy/paste url in a new tab, nothing !

    With OnlineVideo, I can't get code of this url, getWebData return empty string.

    It's very strange, I don't understand ...

    Can you help me please ?



    Thanks a lot !
    Titof
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    Need to set the referer to http://www.direct8.fr/video/amEzeEhZ/le-flash-29-02-2012/. It comes back with the following code (not much):
    Code (Text):
    1. document.getElementById("player_splashscreen").style.display='none';
    2. document.getElementById("player_geoblocking").style.display='block';
     
  4. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Thanks for reply,

    But how can I make this referer with OnlineVideo ?
     
  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
    The current GetWebData of the base SiteUtil does not support referer currently. Make a copy of it in your siteutil and add the referer header in the code.
     
  6. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Heyy ! It's works great !! Many thanks !
    I did not know it.
     
  7. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    Not sure what you mean by does not support it. Replying from a phone, so no details but isn't it
    Code (Text):
    1. GetWebData(URL, null, referer)
    titof, glad it worked out for you.
     
  8. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Yes, with

    Code (Text):
    1. GetWebData(URL, null, referer)
    it's works ;)
     
  9. 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
    Oh I didn't have the code here at work so I replied from my head :) Guess my memory was weak :)
     
  10. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    So, you are human, after all!!:D
     
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!