Fanart Grabber - script for skinners

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kidhazy Offline
Junior Member
Posts: 25
Joined: Nov 2009
Reputation: 0
Location: Melbourne, Australia
Post: #91
(2014-07-31 23:41)kidhazy Wrote:  
(2014-07-31 15:43)robweber Wrote:  Hi,

I just committed 13.2 yesterday - staying on the latest and greatest!

The error you're seeing is an XBMC file error. The XFILE::CDirectoryFactory is an internal XBMC C++ class. My guess is that it doesn't like something about the picture you are trying to load. Could be characters in the filename or something about the image itself. I don't know alot about Aeon Nox but does it have views in the Movie area where you can see the fanart as a background or something? I'd be curious if you found the movie in your movie list if the background would show up there - it should be loading the same image name.

I also tried to search for that error in both the forum and on trac - couldn't find anything. Might be worth a ticket on trac.xbmc.org
Yes, the fanarts that have the 'protocol error' show as backgrounds OK in Aeon Nox if I select the movie.

I'll keep digging and might wipe out the library on a test system and rescan. I thought I noticed one fanart with the protocol error that I'd previously seen appear as one of the random fanart backgrounds - so I'm now not sure if it's a file specific error.

More testing I think.

EDIT: I just noticed Aeon Nox can still display some random fanart backgrounds correctly - even when I'm not connected to the network where the fanarts (and movies) are stored. So it must be getting it from the library image cache. But I still get the 'unsupported protocol(image)' error pointing to the SMB share location for the blank fanarts. I'll drop a post on the Aeon Nox 5 thread as well.

This turned out to be a cache issue. I ran the Texture Cache utility over my library which cached all the missing movie fanarts and now no more Unsupported Protocol errors in the log and the random fanarts all work.
find quote
robweber Offline
Posting Freak
Posts: 904
Joined: Sep 2009
Reputation: 27
Post: #92
Great. Glad you found a fix. From your description it definitely sounded like something with the cache system. Seemed like if it was already present in the cache you were fine but if it wasn't there was an issue. Maybe XBMC had issues pulling it from the SMB share?
find quote
manuelkuehner Offline
Junior Member
Posts: 3
Joined: Oct 2014
Reputation: 0
Post: #93
Hello. On every startup I get an error "grab fanart". I already reinstalled the whole system without any improvement. The error occurs also with the standard skin. I use Gotham 13.2 under Windows 7. The log file is here - my media PC is already off so I post the log file directly;

Code:
20:40:25 T:3240  NOTICE: special://profile/ is mapped to: special://masterprofile/
20:40:25 T:3240  NOTICE: -----------------------------------------------------------------------
20:40:25 T:3240  NOTICE: Starting XBMC (13.2 Git:20140817-0f3db05). Platform: x86 Win32 32-bit
20:40:25 T:3240  NOTICE: Using Release XBMC x32 build, compiled Aug 17 2014 by MSVC 160040219 for x86 Win32 32-bit version 0x06000000
20:40:25 T:3240  NOTICE: Running on Windows 7 SP1 64-bit, build 7601
20:40:25 T:3240  NOTICE: Host CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz, 4 cores available
20:40:25 T:3240  NOTICE: Desktop Resolution: 1920x1080 32Bit at 60Hz
20:40:25 T:3240  NOTICE: Running with restricted rights
20:40:25 T:3240  NOTICE: Aero is enabled
20:40:25 T:3240  NOTICE: special://xbmc/ is mapped to: C:\Program Files (x86)\XBMC
20:40:25 T:3240  NOTICE: special://xbmcbin/ is mapped to: C:\Program Files (x86)\XBMC
20:40:25 T:3240  NOTICE: special://masterprofile/ is mapped to: C:\Users\manu\AppData\Roaming\XBMC\userdata
20:40:25 T:3240  NOTICE: special://home/ is mapped to: C:\Users\manu\AppData\Roaming\XBMC\
20:40:25 T:3240  NOTICE: special://temp/ is mapped to: C:\Users\manu\AppData\Roaming\XBMC\cache
20:40:25 T:3240  NOTICE: The executable running is: C:\Program Files (x86)\XBMC\XBMC.exe
20:40:25 T:3240  NOTICE: Local hostname: DampfMaschine
20:40:25 T:3240  NOTICE: Log File is located: C:\Users\manu\AppData\Roaming\XBMC\xbmc.log
20:40:25 T:3240  NOTICE: -----------------------------------------------------------------------
20:40:25 T:3240  NOTICE: load settings...
20:40:25 T:3240  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
20:40:25 T:3240  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
20:40:25 T:3240  NOTICE: Default DVD Player: dvdplayer
20:40:25 T:3240  NOTICE: Default Video Player: dvdplayer
20:40:25 T:3240  NOTICE: Default Audio Player: paplayer
20:40:25 T:3240  NOTICE: Disabled debug logging due to GUI setting. Level 0.
20:40:25 T:3240  NOTICE: Log level changed to 0
20:40:25 T:3240  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
20:40:25 T:3240  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
20:40:25 T:3240  NOTICE: Loaded playercorefactory configuration
20:40:25 T:3240  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
20:40:25 T:3240  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
20:40:26 T:3364  NOTICE: Thread ActiveAE start, auto delete: false
20:40:26 T:3052  NOTICE: Thread AESink start, auto delete: false
20:40:26 T:3364  NOTICE: Found 2 Lists of Devices
20:40:26 T:3364  NOTICE: Enumerated DIRECTSOUND devices:
20:40:26 T:3364  NOTICE:     Device 1
20:40:26 T:3364  NOTICE:         m_deviceName      : {3175D30E-38D7-419B-81CF-C887637FB361}
20:40:26 T:3364  NOTICE:         m_displayName     : SPDIF - Digitalaudio (S/PDIF) (High Definition Audio-Gerät)
20:40:26 T:3364  NOTICE:         m_displayNameExtra: DIRECTSOUND: Digitalaudio (S/PDIF) (High Definition Audio-Gerät)
20:40:26 T:3364  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
20:40:26 T:3364  NOTICE:         m_channels        : FL,FR
20:40:26 T:3364  NOTICE:         m_sampleRates     : 44100
20:40:26 T:3364  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_AC3,AE_FMT_DTS
20:40:26 T:3364  NOTICE:     Device 2
20:40:26 T:3364  NOTICE:         m_deviceName      : default
20:40:26 T:3364  NOTICE:         m_displayName     : default
20:40:26 T:3364  NOTICE:         m_displayNameExtra:
20:40:26 T:3364  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
20:40:26 T:3364  NOTICE:         m_channels        : FL,FR
20:40:26 T:3364  NOTICE:         m_sampleRates     : 44100
20:40:26 T:3364  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_AC3,AE_FMT_DTS
20:40:26 T:3364  NOTICE: Enumerated WASAPI devices:
20:40:26 T:3364  NOTICE:     Device 1
20:40:26 T:3364  NOTICE:         m_deviceName      : {3175D30E-38D7-419B-81CF-C887637FB361}
20:40:26 T:3364  NOTICE:         m_displayName     : SPDIF - Digitalaudio (S/PDIF) (High Definition Audio-Gerät)
20:40:26 T:3364  NOTICE:         m_displayNameExtra: WASAPI: Digitalaudio (S/PDIF) (High Definition Audio-Gerät)
20:40:26 T:3364  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
20:40:26 T:3364  NOTICE:         m_channels        : FL,FR
20:40:26 T:3364  NOTICE:         m_sampleRates     : 192000,96000,88200,48000,44100,32000
20:40:26 T:3364  NOTICE:         m_dataFormats     : AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC,AE_FMT_S24NE4,AE_FMT_S24LE4,AE_FMT_S24BE4,AE_FM​T_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
20:40:26 T:3364  NOTICE:     Device 2
20:40:26 T:3364  NOTICE:         m_deviceName      : default
20:40:26 T:3364  NOTICE:         m_displayName     : default
20:40:26 T:3364  NOTICE:         m_displayNameExtra:
20:40:26 T:3364  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
20:40:26 T:3364  NOTICE:         m_channels        : FL,FR
20:40:26 T:3364  NOTICE:         m_sampleRates     : 192000,96000,88200,48000,44100,32000
20:40:26 T:3364  NOTICE:         m_dataFormats     : AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC,AE_FMT_S24NE4,AE_FMT_S24LE4,AE_FMT_S24BE4,AE_FM​T_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
20:40:26 T:3240  NOTICE: Running database version Addons16
20:40:26 T:3240  NOTICE: ADDONS: Using repository repository.xbmc.org
20:40:26 T:3240  NOTICE: ADDONS: Using repository repository.pvr-win32.xbmc.org
20:40:26 T:3960  NOTICE: Thread RemoteControl start, auto delete: false
20:40:26 T:1032  NOTICE: Thread PeripBusCEC start, auto delete: false
20:40:26 T:1036  NOTICE: Thread PeripBusUSB start, auto delete: false
20:40:26 T:3240  NOTICE: Found screen: PnP-Monitor (Standard) on NVIDIA GeForce GTX 750 Ti, adapter 0.
20:40:26 T:3240  NOTICE: Primary mode: 1920x1080@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 640x480@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 640x480@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 640x480@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 640x480@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 640x480@ 72.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 720x480@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 720x480@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 720x480@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 720x576@ 50.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 720x576@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 800x600@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 800x600@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 800x600@ 56.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 800x600@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 800x600@ 72.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1024x768@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1024x768@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1024x768@ 70.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1024x768@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1152x864@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1152x864@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1176x664@ 50.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1176x664@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1176x664@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1280x720@ 50.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x720@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x720@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x720@ 120.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x768@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1280x800@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x960@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1280x960@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1280x1024@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1280x1024@ 75.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1360x768@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1366x768@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x900@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1024@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1600x1200@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1680x1050@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1680x1050@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1768x992@ 25.00i - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1768x992@ 30.00i - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1768x992@ 29.97i - Full Screen
20:40:26 T:3240  NOTICE: Previous line repeats 2 times.
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 30.00i - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 29.97i - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 24.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 23.98 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 25.00i - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1920x1080@ 50.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 59.94 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1440x576@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Additional mode: 1400x1050@ 60.00 - Full Screen
20:40:26 T:3240  NOTICE: Checking resolution 16
20:40:27 T:3240  NOTICE: No Joystick name specified, loading default map
20:40:27 T:3240  NOTICE: Previous line repeats 35 times.
20:40:27 T:3240  NOTICE: Running database version Addons16
20:40:27 T:3240  NOTICE: Running database version ViewModes6
20:40:27 T:3240  NOTICE: Running database version Textures13
20:40:27 T:3240  NOTICE: Running database version MyMusic46
20:40:27 T:3240  NOTICE: Running database version MyVideos78
20:40:27 T:3240  NOTICE: Running database version TV22
20:40:27 T:3240  NOTICE: Running database version Epg7
20:40:27 T:3240 WARNING: JSONRPC: Could not parse type "GUI.Property.Value"
20:40:27 T:3240 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
20:40:27 T:3736  NOTICE: Thread LanguageInvoker start, auto delete: false
20:40:27 T:3240  NOTICE: Previous line repeats 5 times.
20:40:27 T:3240  NOTICE: CApplication::UpdateLibraries - Starting video library startup scan
20:40:27 T:4088  NOTICE: Thread VideoInfoScanner start, auto delete: false
20:40:27 T:3240  NOTICE: initialize done
20:40:27 T:4092  NOTICE: Thread LanguageInvoker start, auto delete: false
20:40:28 T:3240  NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: Controller (XBOX 360 For Windows)
20:40:28 T:3240  NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
20:40:28 T:3240  NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: Controller (XBOX 360 For Windows)
20:40:28 T:3240  NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
20:40:28 T:3240  NOTICE: Running the application...
20:40:28 T:4084  NOTICE: Thread JobWorker start, auto delete: true
20:40:28 T:3240  NOTICE: ES: Starting event server
20:40:28 T:4080  NOTICE: Thread EventServer start, auto delete: false
20:40:28 T:4080  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
20:40:28 T:4080  NOTICE: UDP: Listening on port 9777
20:40:28 T:3124  NOTICE: Thread TCPServer start, auto delete: false
20:40:28 T:4088  NOTICE: VideoInfoScanner: Starting scan ..
20:40:28 T:3736  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:4016  NOTICE: Thread JobWorker start, auto delete: true
20:40:28 T:3140  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:3144  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:3552  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:3024  NOTICE: Previous line repeats 1 times.
20:40:28 T:3120  NOTICE: Previous line repeats 1 times.
20:40:28 T:3120  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:4092  NOTICE: -->Python Interpreter Initialized<--
20:40:28 T:4012  NOTICE: Thread AlarmClock start, auto delete: false
20:40:29 T:3268  NOTICE: Thread LanguageInvoker start, auto delete: false
20:40:29 T:4092  NOTICE:  StorageServer Module loaded RUN
20:40:29 T:4092  NOTICE: StorageClient-2.5.4 Starting server
20:40:29 T:3552  NOTICE: script.grab.fanart: Grab Fanart Service Started
20:40:29 T:3268  NOTICE: -->Python Interpreter Initialized<--
20:40:29 T:3276  NOTICE: Thread FileCache start, auto delete: false
20:40:29 T:3552   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'utf8' codec can't decode byte 0x81 in position 7: invalid start byte
                                            Traceback (most recent call last):
                                              File "C:\Users\manu\AppData\Roaming\XBMC\addons\script.grab.fanart\service.py", line 351, in <module>
                                                GrabFanartService().run()
                                              File "C:\Users\manu\AppData\Roaming\XBMC\addons\script.grab.fanart\service.py", line 37, in __init__
                                                self.grabRandom()
                                              File "C:\Users\manu\AppData\Roaming\XBMC\addons\script.grab.fanart\service.py", line 158, in grabRandom
                                                media_array = self.getJSON('VideoLibrary.GetMovies','{"properties":["title","art","year","file","plot"]}')
                                              File "C:\Users\manu\AppData\Roaming\XBMC\addons\script.grab.fanart\service.py", line 319, in getJSON
                                                jsonobject = json.loads(json_response)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\json\__init__.py", line 338, in loads
                                                return _default_decoder.decode(s)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 365, in decode
                                                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 381, in raw_decode
                                                obj, end = self.scan_once(s, idx)
                                            UnicodeDecodeError: 'utf8' codec can't decode byte 0x81 in position 7: invalid start byte
                                            -->End of Python script error report<--
20:40:30 T:3536  NOTICE: Thread FileCache start, auto delete: false

The log file contains errors but I cannot figure out what the problem is.
(This post was last modified: Today 02:03 by manuelkuehner.)
find quote
Post Reply