TOU.TV doesn't works | Page 5

Discussion in 'OnlineVideos' started by kilik360, May 16, 2011.

  1. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    URL seems to be correct (except extra parameters). But user agent was not send to server. Replace and try attached filter version.


     

    Attached Files:

  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
    Good morning from Canada.

    No change. Buffer stuck at 0.0% (stopped after 20 seconds).

    Logs attached.
     
  4. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    It's bad :( I simulate requests and found that user agent is mandatory, cookies and referer not, but must be supplied extra parameters in URL. It needs bigger changes (OV + filter).
     
  5. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
  6. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I did necessary changes. You have to update your OV solution to SVN 2583. You need to use AfhsManifestUrl instead of HttpUrl class and set ExtraParameters property to string starting with '?' in manifest URL.
     
  7. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    I updated to latest svn, copied binaries from MPUrlSourceSplitter\bin_Win32 to C:\Program Files (x86)\Team MediaPortal\MediaPortal\MPUrlSourceSplitter. Now my code looks like
    Code (Text):
    1. int questionMarkPosition = manifestUrl.IndexOf('?');
    2. string extraParemeters = manifestUrl.Substring(questionMarkPosition + 1, manifestUrl.Length - questionMarkPosition - 1);
    3. result = new MPUrlSourceFilter.AfhsManifestUrl(manifestUrl) {
    4.     UserAgent = @"Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0",
    5.     ExtraParameters = extraParemeters
    6. }.ToString();
    7.  
    Still unable to stream. Logs attached. The URL that ends with Seg1-Frag1 now has extra parameters appended to the end (making it invalid perhaps?)
     
    Last edited: January 9, 2013
  8. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    You need to add '?' to extra parameters:
    Code (Text):
    1. int questionMarkPosition = manifestUrl.IndexOf('?');
    2. string extraParemeters = manifestUrl.Substring(questionMarkPosition, manifestUrl.Length - questionMarkPosition);
    3. result = new MPUrlSourceFilter.AfhsManifestUrl(manifestUrl) {
    4.     UserAgent = @"Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0",
    5.     ExtraParameters = extraParemeters
    6. }.ToString();
    7.  
     
  9. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    off by one. Oops... or @offbyone. LOL. Any way, I fixed the code and still no luck. Find attached logs
     
    Last edited: January 9, 2013
  10. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Can you replace in extra parameters all characters '/' with '%2f'?
     
  11. corporate_gadfly

    corporate_gadfly Portal Pro

    Joined:
    May 17, 2011
    Messages:
    396
    Likes Received:
    68
    Ratings:
    +72 / 0
    Home Country:
    Canada Canada
    Just did.
    Code (Text):
    1. ExtraParameters = extraParemeters.Replace("/", "%2f")
    Still no buffering. Logs attached.
     
    Last edited: January 9, 2013
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!