• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 10
Fanart Grabber - Current Version 0.15.1
#61
Hi robweber, first of all thanx for this great script.

One question:

Would it be possible to grab actors and directors thumbs with this script ?

Thanx.

Here is what have in my mind: To show actors and directors as widgets


Image


Image
Reply
#62
That is a really cool idea. I like the look of it. Reading through the JSON API it looks like I can pull some cast/studio/director details about a specific movie or tv show. It doesn't look like I can just get a full list of all the directors or actors the way you can view them in the video library nodes. Once I have the names I also have no idea how I'd find the location of the images.

I would think a new JSON function is needed, something like GetMovieActors(), GetMovieDirectors(), etc. It would have to return the name as well as the xbmc path to the thumbnail image.
Reply
#63
Hi,

I'm using at the moment Aeon Nox 5 (WIP), with the nigthly build from 6th of February.
On the home screen, the skin makes use of your script: script.grab.fanart.

My current problem is that I'm not able to get random movie art as background for my movie menu background.
Once set, my background turns black after changing once or twice the background.
After a while I starts again a loop of one or two fanarts and turns black again.
With TV shows it works like it should be.
Strange only movies is impacted.

Looking into the log file I've found this warning:
11:53:06 T:140247920797440 NOTICE: -->Python Interpreter Initialized<--
11:53:06 T:140247920797440 NOTICE: {'reload': '20140208105213', '?type': 'recentmovies'}
11:53:09 T:140247182599936 WARNING: Create - Unsupported protocol(image) in image://http%3a%2f%2fcf2.imgobject.com%2ft%2fp%2foriginal%2fppleCFIH5jjCsUD91bcOq1yXS0r.​jpg/
11:53:18 T:140247920797440 WARNING: Previous line repeats 1 times.
11:53:18 T:140247920797440 NOTICE: Thread LanguageInvoker start, auto delete: false

Do you have any idea on how to solve this problem please?
Thx in advance!

Edit:
I don't know what happened, but I changed the settings from random to recent and 10sec -> 25sec and now everything is fine ... strange, but very happy with the result ;-)
Intel NUC BOXD34010WYK2 / Intel mSata 525 30GB / Kingston 8 GB / Intel 7260hmw
Reply
#64
Very interesting. Can you tell me what version of the script you are using. Current github version is 0.12.4 - https://github.com/robweber/script.grab.fanart.
Reply
#65
(2014-02-08, 13:40)speedway Wrote: Hi,

I'm using at the moment Aeon Nox 5 (WIP), with the nigthly build from 6th of February.
On the home screen, the skin makes use of your script: script.grab.fanart.

My current problem is that I'm not able to get random movie art as background for my movie menu background.
Once set, my background turns black after changing once or twice the background.
After a while I starts again a loop of one or two fanarts and turns black again.
With TV shows it works like it should be.
Strange only movies is impacted.

Looking into the log file I've found this warning:
11:53:06 T:140247920797440 NOTICE: -->Python Interpreter Initialized<--
11:53:06 T:140247920797440 NOTICE: {'reload': '20140208105213', '?type': 'recentmovies'}
11:53:09 T:140247182599936 WARNING: Create - Unsupported protocol(image) in image://http%3a%2f%2fcf2.imgobject.com%2ft%2fp%2foriginal%2fppleCFIH5jjCsUD91bcOq1yXS0r.​jpg/
11:53:18 T:140247920797440 WARNING: Previous line repeats 1 times.
11:53:18 T:140247920797440 NOTICE: Thread LanguageInvoker start, auto delete: false

Do you have any idea on how to solve this problem please?
Thx in advance!

Edit:
I don't know what happened, but I changed the settings from random to recent and 10sec -> 25sec and now everything is fine ... strange, but very happy with the result ;-)

I have a very similar problem - using 0.12.4 with the Rapier skin - the fanart for the TV Shows background works fine, but the Movies one doesn't work at all. No images ever appear. Same error as mentioned by speedway appears in my log file, but following his random->recent changes didn't fix it for me. Any ideas?
Reply
#66
The error message makes it look like xbmc can't load the image but I cannot be certain. Really need a debug log from startup, then let the addon run for 1-2 minutes so generate some log messages. Keep your selection on the movies node (or whatever area doesn't show fanart) so that xbmc will try to load those images.

I think it's going to come down to XBMC not being able to load those image files, but it could be because the file names aren't being encoded properly by the addon. The log file tells all........
Reply
#67
Right, so it seems like I was mistaken in thinking that my problem was the same. I turned on debug logging and after a reboot I do see this message:

Code:
01:39:38 T:1532523584 WARNING: Create - Unsupported protocol(image) in image://http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2fu31LfJTP8FZGnTE3kEDUATYEX00.jpg/

However it only happens once during the startup process. Here's what is logged when I go to the TV Shows section (which works):

Code:
01:41:01 T:1110364160   DEBUG: OnKey: right (0xf083) pressed, action is Right
01:41:01 T:1461711936  NOTICE: Thread JobWorker start, auto delete: true
01:41:01 T:1461711936   DEBUG: DoWork - took 167 ms to load special://masterprofile/Thumbnails/1/1c4035a8.jpg
01:41:02 T:1495880768   DEBUG: script.grab.fanart: Movie - Heat
01:41:02 T:1495880768   DEBUG: script.grab.fanart: TV - NCIS
01:41:02 T:1495880768   DEBUG: script.grab.fanart: Video - Heat
01:41:02 T:1495880768   DEBUG: script.grab.fanart: Global - NCIS
01:41:03 T:1461711936   DEBUG: DoWork - took 148 ms to load special://masterprofile/Thumbnails/9/91846bf7.jpg
01:41:10 T:1495880768   DEBUG: script.grab.fanart: Movie - Warrior
01:41:10 T:1495880768   DEBUG: script.grab.fanart: TV - The X-Files
01:41:10 T:1495880768   DEBUG: script.grab.fanart: Video - The X-Files
01:41:10 T:1495880768   DEBUG: script.grab.fanart: Global - Warrior
01:41:11 T:1461711936   DEBUG: DoWork - took 154 ms to load special://masterprofile/Thumbnails/9/9af85a9a.jpg

Here's what happens when I go to the Movies section (which doesn't work):

Code:
01:43:46 T:1110364160   DEBUG: OnKey: left (0xf082) pressed, action is Left
01:43:46 T:1461711936   ERROR: GetDirectory - Error getting /home/xbian/.xbmc/userdata/Thumbnails/Video/Fanart/
01:43:46 T:1461711936   ERROR: GetDirectory - Error getting special://profile/Thumbnails/Video/Fanart/
01:43:50 T:1495880768   DEBUG: script.grab.fanart: Movie - The Croods
01:43:50 T:1495880768   DEBUG: script.grab.fanart: TV - Primeval
01:43:50 T:1495880768   DEBUG: script.grab.fanart: Video - The Croods
01:43:50 T:1495880768   DEBUG: script.grab.fanart: Global - The Croods
01:43:58 T:1495880768   DEBUG: script.grab.fanart: Movie - Ocean's Eleven
01:43:58 T:1495880768   DEBUG: script.grab.fanart: TV - Modern Family
01:43:58 T:1495880768   DEBUG: script.grab.fanart: Video - Ocean's Eleven
01:43:58 T:1495880768   DEBUG: script.grab.fanart: Global - Modern Family
01:44:06 T:1495880768   DEBUG: script.grab.fanart: Movie - Clerks
01:44:06 T:1495880768   DEBUG: script.grab.fanart: TV - Raising Hope
01:44:06 T:1495880768   DEBUG: script.grab.fanart: Video - Raising Hope
01:44:06 T:1495880768   DEBUG: script.grab.fanart: Global - Clerks

The absence of the DoWork message and the error message about the missing directories makes me think that either:

a) the script is telling the skin the wrong location to get movie images, or
b) the skin is ignoring what the script is telling it and looking in a non-existent folder for movie image files.

Still need to see the full log or does this narrow it down enough?
Reply
#68
Hi guys.

I will look at the Rapier skin and how it handles the script. Maybe I have made an error in the coding...

It will probably take some days, as I'm pretty busy at the moment.

Christian
Reply
#69
(2014-02-22, 11:56)Gade Wrote: Hi guys.

I will look at the Rapier skin and how it handles the script. Maybe I have made an error in the coding...

It will probably take some days, as I'm pretty busy at the moment.

Christian

Please do. From the looks of the log it is trying a "GetDirectory" action when really it should just be pulling that one image. The script is getting the image location directly from XBMC so there shouldn't be any confusion at that level about where the file actually lives. If it is working for one category and not another I think the skin code would be a good place to check first. I tried to take a quick look but without be familiar with that skin it was hard to find exactly what pieces are visible and when. Please post back if you find anything.
Reply
#70
Do you have plans to submit this to the Gotham repo?
Reply
#71
According to Martijn it is already there. This add on uses the module extension point so you can't browse it in the repo. Only imports from a skin can pull it in.
Reply
#72
It's in the Frodo repo, not in Gotham one. I was planning to make it optional but since it cannot be installed manually i have to think again.

But i guess Gotham clients can access Frodo repo too if i'm not mistaken.
Reply
#73
Rob, the problem I told you about earlier in the reFocus thread keeps popping up. Or at least the manifestation of the problem, which is no fanart showing up at all.

Sometimes the script will just start working without any trouble and everything is working smoothly. But most of the time it won't unfortunately. I have tried several things to exclude errors on my behalf. But right now there's simply an image control with no visibility conditions or anything and there's still no fanart coming up.

I have been going through the logs:

Code:
16:32:44 T:4562464768  NOTICE: script.grab.fanart: Grab Fanart Service Started
16:32:44 T:4562464768   DEBUG: script.grab.fanart: media type is: random
16:32:44 T:4562464768   DEBUG: JSONRPC: Incoming request: { "jsonrpc" : "2.0" , "method" : "VideoLibrary.GetMovies" , "params" : {"properties":["title","art","year","file","plot"]} , "id":1 }
16:32:44 T:4562464768   DEBUG: script.grab.fanart: no result
16:32:44 T:4562464768   DEBUG: script.grab.fanart: found 0 movies files
16:32:44 T:4562464768   DEBUG: JSONRPC: Incoming request: { "jsonrpc" : "2.0" , "method" : "VideoLibrary.GetTVShows" , "params" : {"properties":["title","art","year","file","plot"]} , "id":1 }
16:32:44 T:4562464768   DEBUG: script.grab.fanart: no result
16:32:44 T:4562464768   DEBUG: script.grab.fanart: found 0 tv files
16:32:44 T:4562464768   DEBUG: JSONRPC: Incoming request: { "jsonrpc" : "2.0" , "method" : "AudioLibrary.GetArtists" , "params" : { "properties":["fanart","description"] } , "id":1 }
16:32:44 T:4562464768   DEBUG: script.grab.fanart: no result
16:32:44 T:4562464768   DEBUG: script.grab.fanart: found 0 music files

It's not finding anything?
Reply
#74
Thanks for the log. That really helps. The "no result" message happens when the JSON response is not formatted correctly. Would be nice to see the contents of that response object. If I insert some code to do that and PM you a link to a replacement service.py file do you think you could run it and post another log?
Reply
#75
Sure, no problem Smile
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 10

Logout Mark Read Team Forum Stats Members Help
Fanart Grabber - Current Version 0.15.13