[fixed] - Sometimes search for fanart failed because double slash

Discussion in 'MediaPortal 1.2.0 BETA' started by ShIvADeSt, May 9, 2011.

  1. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    MediaPortal Version: 1.2.0
    MediaPortal Skin: Defaultwide



    I try do search fanart for my videos. But sometimes, even if record has correct IMDB ttnumber, search is failed and in log strange URL with double slash before tt number
    Code (Text):
    1.  
    2. 2011-05-09 23:02:33.159958 [ERROR][Config Main(1)]: Fanart: Error retreiving from WebPage: http://api.themoviedb.org/2.1/Movie.imdbLookup/en/xml/2ed40b5d82aa804a2b1fcedb5ca8d97a[COLOR="Red"][SIZE="3"]//[/SIZE][/COLOR]tt0166973 Encoding:utf-8 err:Удаленный сервер возвратил ошибку: (404) Не найден. stack:   в System.Net.HttpWebRequest.GetResponse()
    3.    в MediaPortal.Util.FanArt.GetPage(String strUrl, String strEncode, String& absoluteUri)
    4.  
    Log are attached
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    Can someone else confirm it?
     
  4. elliottmc
    • Team MediaPortal

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Well, the link with the double slash is not correct (copy it into a web browser to confirm), so it won't download anything.

    As to why this link is incorrect, I have no idea. Sorry.

    How are you trying to search for fanart - with the fanart handler plugin or with My Videos? You have provided incomplete logs and no steps to reproduce, so it is not easy to help you.

    https://forum.team-mediaportal.com/announcement.php?a=6

    Mark
     
  5. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    It's not an error, this is 2nd try to search fanart (first one is regular link with one "/" and it didn't returned result) because there was some occasions when users put in TMDB database wrong IMDBttID number as /tt1234567 so API gives you result only as http://........//tt1234567, there is a more stupid problems on TMDB (two same movies entered by different users so you can get no result even that first entered movie is correct and so on.... that's the problem with open databases).

    So, in general, fanart for tt0166973 not exists (only covers) which you can see also if you try http://api.themoviedb.org/2.1/Movie.imdbLookup/en/xml/2ed40b5d82aa804a2b1fcedb5ca8d97a/tt0166973

    Agree, that error can confuse (but I need log for that to see failed search).

    What is mistake is that 2nd search in this case in not needed as 1st returned regular XML but in it's data there is no fanart, so 2nd search should be avoided. I will do that change and improve log to not to be so confusing.

    Will mark this topic as "Bug" so I can link this thread in Mantis entry.

    Mantis: http://mantis.team-mediaportal.com/view.php?id=3555

    Fixed in SVN 27897
     
  6. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    I have some videos, that have backdrops in TMDb, but MP cannot lookup em. I provide logs where MP cannot retrieve fanart and correct links to pages with fanart by API.

    UPD. I have checked and see that TMDB nothing returns for some video TT
     
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!