Fanart Handler Plugin v2.1.1 (and music fanart scraper) (2 Viewers)

Status
Not open for further replies.

ScoobyMP

Portal Member
July 18, 2009
14
0
Home Country
United Kingdom United Kingdom
Hi Trevor,
Thanks for the response. Looking in the Music Fanart / Manage Fanart tab the names do all appear to match, albeit that the handler has them all in lower case so it has "coldplay" for instance though case doesn't seem to make a difference for those that work - "counting crows" is fine. The relevant artworks are all enabled too with the exception of some that were duplicated at different sizes so I've disabled the duplicates. Curiously, artwork for U2 shows fine in MP though Fanart Handler has the artist name as just "u" :mad:

Here's my fanarthandler.log:
28-Aug-2010 22:55:18 Info [ FanartHandlerSetup]: Fanart Handler is starting.
28-Aug-2010 22:55:18 Info [ FanartHandlerSetup]: Fanart Handler version is 2.1.1.13899
28-Aug-2010 22:55:18 Info [ FanartHandlerSetup]: Proxy is used.
28-Aug-2010 22:55:18 Info [ FanartHandlerSetup]: Fanart Handler is using Fanart: True, Album Thumbs: False, Artist Thumbs: False.
28-Aug-2010 22:55:18 Info [ DatabaseManager]: Successfully Opened Database: FanartHandler.db3
28-Aug-2010 22:55:18 Info [ DatabaseManager]: Database version is verified: FanartHandler.db3
28-Aug-2010 22:55:18 Info [ FanartHandlerSetup]: Fanart Handler is started.
28-Aug-2010 22:55:19 Info [ DatabaseManager]: InitialScrape is starting...
28-Aug-2010 22:55:20 Info [ DatabaseManager]: InitialScrape is done.
28-Aug-2010 22:55:22 Info [ Scraper]: Scrape for new images is starting...
28-Aug-2010 22:55:23 Info [ Scraper]: Found 13 pages with new images on htbackdrops.com
28-Aug-2010 22:55:23 Debug [ Scraper]: Scanning page 1
28-Aug-2010 22:55:23 Debug [ Scraper]: Scanning page 2
28-Aug-2010 22:55:24 Debug [ Scraper]: Scanning page 3
28-Aug-2010 22:55:24 Debug [ Scraper]: Scanning page 4
28-Aug-2010 22:55:26 Debug [ Scraper]: Scanning page 5
28-Aug-2010 22:55:27 Debug [ Scraper]: Scanning page 6
28-Aug-2010 22:55:27 Debug [ Scraper]: Scanning page 7
28-Aug-2010 22:55:29 Debug [ Scraper]: Scanning page 8
28-Aug-2010 22:55:30 Debug [ Scraper]: Scanning page 9
28-Aug-2010 22:55:30 Debug [ Scraper]: Scanning page 10
28-Aug-2010 22:55:31 Debug [ Scraper]: Scanning page 11
28-Aug-2010 22:55:32 Debug [ Scraper]: Scanning page 12
28-Aug-2010 22:55:33 Debug [ Scraper]: Scanning page 13
28-Aug-2010 22:55:34 Info [ Scraper]: Scrape for new images is done.
28-Aug-2010 22:56:18 Info [ DirectoryWorker]: Refreshing local fanart is starting.
28-Aug-2010 22:56:18 Info [ DirectoryWorker]: Refreshing local fanart is done.
28-Aug-2010 23:22:31 Info [ FanartHandlerSetup]: Fanart Handler is stopped.

No apparent errors. Here's my error.log - the only errors in here relate to picture browsing and some missing thumbs there:
2010-08-28 23:00:55.703125 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\2157032773L.jpg)
2010-08-28 23:00:56.140625 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\3186728181L.jpg)
2010-08-28 23:00:56.640625 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\2075995425L.jpg)
2010-08-28 23:00:57.062500 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\1188889745L.jpg)
2010-08-28 23:00:57.500000 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\25001537L.jpg)
2010-08-28 23:19:34.593750 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\521489740L.jpg)
2010-08-28 23:19:35.359375 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\1488271260L.jpg)
2010-08-28 23:19:35.734375 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\3935693708L.jpg)
2010-08-28 23:19:36.093750 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\3623207484L.jpg)
2010-08-28 23:19:36.453125 [ERROR][MPMain(1)]: TextureManager: LoadGraphic - invalid thumb(C:\Profiles\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Pictures\2421537004L.jpg)

In my main music settings for MP I'm getting album art from folder.jpg only, though I do have the same images in the tags of the files. I've also set "create genre preview thumbs" and "create artist preview thumbs" to false, following info from a tutorial thread I found on here. I have everything in one "music folder", but organised under that by Artist / Album. I also have "Disable internet lookups for cover art" set false because I want it to stick with my high res covers.

Is any of that of use? :)
 

AlfredENeuma

Portal Pro
October 10, 2008
433
156
Home Country
Germany Germany
AW: Re: Fanart Handler Plugin v2.1.1 (and music fanart scraper)

I've also set "create genre preview thumbs" and "create artist preview thumbs" to false ... I also have "Disable internet lookups for cover art" set false
Hi,
where did you find these settings? I do not see them in my configuration. Maybe you are using an old version of MP and/or Fanart? Little hint: It would be a good idea to fill out your system specs in the control panel.;)

Second: How do your statistics look like in "Fanart Overview (#)"? Do you have any known "Fanart Images" for the artists which do not show anything?
Why I ask: I did have some confusions in my database (see my earlier post)
my earlier post
, and I deleted all the wrong artists with SQLite Database Browser; after that everything was ok.
Good look!
 

ScoobyMP

Portal Member
July 18, 2009
14
0
Home Country
United Kingdom United Kingdom
Hi AlfredENeuma,

Those settings ("create genre preview thumbs" and "create artist preview thumbs") are in the main MP config, under Music.

The Fanart overview is ok ,and shows that there are images available for the artists where it is missing (among those where it has found artwork that is). I'll see if I can get any joy with SQLlite, though I didn't really envisage having to hack around with databases. It'll be interesting to see if anything is awry though and hopefully fix it.

Cheers.:D
 

ScoobyMP

Portal Member
July 18, 2009
14
0
Home Country
United Kingdom United Kingdom
Hmmm, well I tried the SQLlite browser and checked the artists in the fanart databse and MP's music database. Apart from text case, they're the same. I still don't get how it was matching "u" with "U2" in any case, and that was one artist for which the art worked fine! :confused:
 

AlfredENeuma

Portal Pro
October 10, 2008
433
156
Home Country
Germany Germany
AW: Re: Fanart Handler Plugin v2.1.1 (and music fanart scraper)

I still don't get how it was matching "u" with "U2" in any case, and that was one artist for which the art worked fine! :confused:
Hi Scooby,
if everything looks good in the database, I fear I do not have an explanation for your problem.
I just do have an explanation for your "U2" confusion; this is according to the naming convention of the plugin. See the User Guide:

If the current played artist in MP is Madonna that will be matched in the fanart folder with any image that starts with "madonna", followed by numbers and a file extenstion. This means a file named "madonna1.jpg" will be a match. And Madonna010.jpg will be a match. However, a file named "This Is A Madonna Image.jpg" will not be a match, and a file named madoXnna.jpg will not be a match.

So, U2 is as well a match as U3, U25.....;)

Alfred
 

ScoobyMP

Portal Member
July 18, 2009
14
0
Home Country
United Kingdom United Kingdom
That's very useful to know, many thanks! I did have a look in the docs but must have missed that bit. :oops: I'll have to see if I can find any other hints in the DBs when I next feel like delving into it. TBH, for the sake of background pictures the time to fix it would need to be very low to make the result worthwhile.
 

cul8er

Retired Team Member
  • Premium Supporter
  • August 31, 2006
    2,159
    2,679
    Home Country
    Sweden Sweden
    Hi HomeY,

    Sure, if someone can investigate how this can be determined in the MovingPicture database. What table and what column controls this?

    best regards
    cul8er
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    43
    Texas
    Home Country
    United States of America United States of America
    You can grab the parental controls filter from MovingPicturesCore.Settings.ParentalControlsFilter. This class has a Filter() method that takes a Collection<DBMovieInfo> as input. The output is all the movies that are kid friendly from the list. You probably will also want to check MovingPicturesCore.Settings.ParentalControlsEnabled. If you want a list of all movies in the database call DBMovieInfo.GetAll(). Put them together and you have this:

    var kidFriendlyMovies = MovingPicturesCore.Settings.ParentalControlsFilter.Filter(DBMovieInfo.GetAll());

    If you are trying to find the backdrop path for a given movie, use the BackdropFullPath property of DBMovieInfo.

    Please do not directly access the database.

    p.s. If you have any more questions or need some clarification, jump on IRC.
     

    trevor

    Portal Pro
    October 17, 2006
    1,600
    950
    Chelmsford
    Home Country
    United Kingdom United Kingdom
    You can grab the parental controls filter from MovingPicturesCore.Settings.ParentalControlsFilter. This class has a Filter() method that takes a Collection<DBMovieInfo> as input. The output is all the movies that are kid friendly from the list. You probably will also want to check MovingPicturesCore.Settings.ParentalControlsEnabled. If you want a list of all movies in the database call DBMovieInfo.GetAll(). Put them together and you have this:

    var kidFriendlyMovies = MovingPicturesCore.Settings.ParentalControlsFilter.Filter(DBMovieInfo.GetAll());

    If you are trying to find the backdrop path for a given movie, use the BackdropFullPath property of DBMovieInfo.

    Please do not directly access the database.

    p.s. If you have any more questions or need some clarification, jump on IRC.


    hi fforde,

    There is one small problem with this, as any plugin using this method has to referance a couple of MovingPictures dlls and if the user has not installed MovingPictures then the plugin will not be loaded by MediaPortal with all the issues that go with that...

    I have looked at various methods of getting round this but hit a dead end everytime. The may be an obivious method to get round this that I just dont know.

    Another thought is that a small DB access dll that can be shipped with other plugins or maybe a class we can add to our pluigins might be an option.

    Any ideas welcome...

    thx
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom