[fixed] Sometimes search for fanart failed because double slash (1 Viewer)

ShIvADeSt

Portal Pro
May 30, 2009
71
2
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:
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()
   в MediaPortal.Util.FanArt.GetPage(String strUrl, String strEncode, String& absoluteUri)

Log are attached
 

elliottmc

Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    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
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    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
     

    ShIvADeSt

    Portal Pro
    May 30, 2009
    71
    2
    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
     

    Users who are viewing this thread

    Top Bottom