Kodi Community Forum
[RELEASE] cdART Manager Script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] cdART Manager Script (/showthread.php?tid=77031)



- Quokka1979 - 2011-08-17

giftie Wrote:To have the logo.png, fanart.jpg and extrafanart to be separate from the music library files you need to adjust the 'Path to Music Library' folder. This path is only used for those items. cdARTs and folder.jpgs need to go into the Artist/Album path, this can not be changed.

Thanks for letting me know.
So I started redoing my music lib.

Arist1/album1
Arist1/album2
Arist1/album3/cd1
Arist1/album3/cd1
Arist2/album1

But how do I do this for greatest hits & soundtracks?


- giftie - 2011-08-18

Greatest hits would still follow the same format:

Aerosmith/Greatest Hits/tracks...

for Compilation CDs:

Various Artists/Album/tracks...

Also, if you are using a tagging program to fix up ID3/APE tags, look in to something that uses MusicBrainz as a source(both the script and fanart.tv use MusicBrainz)


- thereddog - 2011-08-19

I just installed the addon and went into settings, but there is no place to add my music library. What am I overlooking? (Night skin)


- giftie - 2011-08-19

thereddog Wrote:I just installed the addon and went into settings, but there is no place to add my music library. What am I overlooking? (Night skin)

Which version are you using?


Script. - Tommy2012 - 2011-08-19

Hi Giftie

Hope u can assist please. I keep getting script failed. Is there a solution to making your script work for me? Your help will be much appreciated



18:54:39 T:2886095552 NOTICE: -----------------------------------------------------------------------
18:54:39 T:2886095552 NOTICE: Starting XBMC, Platform: Mac OS X (11.1.0 x86_64). Built on Aug 18 2011 (Git:20110818-ebbad80)
18:54:39 T:2886095552 NOTICE: special://xbmc/ is mapped to: /Volumes/XBMC/XBMC.app/Contents/Resources/XBMC
18:54:39 T:2886095552 NOTICE: special://xbmcbin/ is mapped to: /Volumes/XBMC/XBMC.app/Contents/Resources/XBMC:54:56 T:2960916480 DEBUG: Process - Entering source directory /Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea
18:54:56 T:2960916480 DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.python api
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - ############################################################
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # cdART Manager #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # default.py module #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # script.cdartmanager #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Giftie #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # 1.5.0 #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Thanks for the help guys... #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - ############################################################
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Work Folder: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Database: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/l_cdart.db
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon settings: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/settings.xml
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Looking for settings.xml
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Db not found, Must Be First Run
18:54:56 T:2960916480 INFO: -->Python script returned the following error<--
18:54:56 T:2960916480 ERROR: Error Type: <type 'exceptions.ImportError'>
18:54:56 T:2960916480 ERROR: Error Contents: No module named PIL
18:54:56 T:2960916480 ERROR: Traceback (most recent call last):
File "/Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea/default.py", line 149, in <module>
import gui
File "/Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea/resources/lib/gui.py", line 15, in <module>
from PIL import Image
ImportError: No module named PIL
18:54:56 T:2960916480 INFO: -->End of Python script error report<--
18:54:56 T:2960916480 INFO: Python script stopped
18:54:56 T:2960916480 DEBUG: Thread XBPyThread 2960916480 terminating
18:54:56 T:2886095552 DEBUG: waiting for python thread 2 to stop
18:54:56 T:2886095552 DEBUG: python thread 2 destructed
18:54:56 T:2886095552 DEBUG: ------ Window Init (DialogKaiToast.xml) ------


- giftie - 2011-08-19

The python module PIL(Python Image Library) seems to be missing in the build sequence of OSX versions of XBMC pre-eden(I found this out 3 weeks ago and posted a message on Trac - http://trac.xbmc.org/ticket/11790)

There is a workaround, the module is available in Dharma, so if you have the ability to install the OSX version of Dharma somewhere and pull the script.module.pil from the system addons(not sure where these are located on an OSX system, but it is the same folder that Confluence resides).

Or you can manually install the PIL module into your system Python -> http://effbot.org/zone/pil-index.htm


Tommy2012 Wrote:Hi Giftie

Hope u can assist please. I keep getting script failed. Is there a solution to making your script work for me? Your help will be much appreciated



18:54:39 T:2886095552 NOTICE: -----------------------------------------------------------------------
18:54:39 T:2886095552 NOTICE: Starting XBMC, Platform: Mac OS X (11.1.0 x86_64). Built on Aug 18 2011 (Git:20110818-ebbad80)
18:54:39 T:2886095552 NOTICE: special://xbmc/ is mapped to: /Volumes/XBMC/XBMC.app/Contents/Resources/XBMC
18:54:39 T:2886095552 NOTICE: special://xbmcbin/ is mapped to: /Volumes/XBMC/XBMC.app/Contents/Resources/XBMC:54:56 T:2960916480 DEBUG: Process - Entering source directory /Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea
18:54:56 T:2960916480 DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.python api
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - ############################################################
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # cdART Manager #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # default.py module #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # script.cdartmanager #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Giftie #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # 1.5.0 #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - # Thanks for the help guys... #
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - ############################################################
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Work Folder: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Database: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/l_cdart.db
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon settings: /Users/manuel/Library/Application Support/XBMC/userdata/addon_data/script.cdartmanager/settings.xml
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Looking for settings.xml
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
18:54:56 T:2960916480 NOTICE: [script.cdartmanager] - Addon Db not found, Must Be First Run
18:54:56 T:2960916480 INFO: -->Python script returned the following error<--
18:54:56 T:2960916480 ERROR: Error Type: <type 'exceptions.ImportError'>
18:54:56 T:2960916480 ERROR: Error Contents: No module named PIL
18:54:56 T:2960916480 ERROR: Traceback (most recent call last):
File "/Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea/default.py", line 149, in <module>
import gui
File "/Users/manuel/Library/Application Support/XBMC/addons/Giftie-script.cdartmanager-0f718ea/resources/lib/gui.py", line 15, in <module>
from PIL import Image
ImportError: No module named PIL
18:54:56 T:2960916480 INFO: -->End of Python script error report<--
18:54:56 T:2960916480 INFO: Python script stopped
18:54:56 T:2960916480 DEBUG: Thread XBPyThread 2960916480 terminating
18:54:56 T:2886095552 DEBUG: waiting for python thread 2 to stop
18:54:56 T:2886095552 DEBUG: python thread 2 destructed
18:54:56 T:2886095552 DEBUG: ------ Window Init (DialogKaiToast.xml) ------



Brilliant - Tommy2012 - 2011-08-20

Hi Giftie

Wow!!! Your Explaination was absolute brilliant and got it to work in no time. Love your script and stunning work!!! Thanks again Giftie Big Grin


- ederson - 2011-08-20

i decided finally to add some artwork for my music collection
i installed the script (pre eden, i have the 18/8 build installed, central mysql db)

it doen`s scan the db.i guess i must be doing something wrong here ....

Quote:11:45:36 T:10712 NOTICE: [script.cdartmanager] - ############################################################
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # cdART Manager #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # gui.py module #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # script.cdartmanager #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # Giftie #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # 1.4.9 #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # Thanks for the help... #
11:45:36 T:10712 NOTICE: [script.cdartmanager] - ############################################################
11:45:36 T:10712 NOTICE: [script.cdartmanager] - # Setting up Script
11:45:36 T:10712 NOTICE: [script.cdartmanager] - Addon Db found - Loading Counts
11:45:36 T:10712 ERROR: Traceback (most recent call last):
11:45:36 T:10712 ERROR: File "C:\Users\alex\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 148, in onInit
11:45:36 T:10712 ERROR: self.setup_all()
11:45:36 T:10712 ERROR: File "C:\Users\alex\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 1029, in setup_all
11:45:36 T:10712 ERROR: local_album_count, local_artist_count, local_cdart_count = new_local_count()
11:45:36 T:10712 ERROR: File "C:\Users\alex\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\database.py", line 441, in new_local_count
11:45:36 T:10712 ERROR: c.execute(query)
11:45:36 T:10712 ERROR: OperationalError: no such table: counts



- giftie - 2011-08-20

ederson Wrote:i decided finally to add some artwork for my music collection
i installed the script (pre eden, i have the 18/8 build installed, central mysql db)

it doen`s scan the db.i guess i must be doing something wrong here ....

Something must have happened to your l_cdart.db file. If you delete this(found in your xbmc/userdata/addon_data/script.cdartmanager directory) then restart the program, it should work fine.


- jasmill1969 - 2011-08-20

When I go to set the path to my music folder I don't have the option to pick an SMB. All I see is my local machine.I am using windows dharma and my OS is windows 7 enterprise. Can anyone tell me why I don't get the other options like SMB?


- giftie - 2011-08-20

jasmill1969 Wrote:When I go to set the path to my music folder I don't have the option to pick an SMB. All I see is my local machine.I am using windows dharma and my OS is windows 7 enterprise. Can anyone tell me why I don't get the other options like SMB?

You will need to set up the path first in the File Manager(add source I believe) for it to show up in the script's settings


- jasmill1969 - 2011-08-20

Where is File Manager? I have already set up all my sources: Video,TV, Movies, Pictures, and Music. I get the option to set up SMB when I add a source, nbut I don't get it when I am trying to add thumbnail or set my music path.


- giftie - 2011-08-20

jasmill1969 Wrote:Where is File Manager? I have already set up all my sources: Video,TV, Movies, Pictures, and Music. I get the option to set up SMB when I add a source, nbut I don't get it when I am trying to add thumbnail or set my music path.

Depending on the skin, it is either a drop down, or pop up sub menu on the Home screen's Settings tab. For instance, on Aeon MQ(2 or 3) pressing down on the Settings shows the sub menu, where the access to the File Manager is accessed. Most horizontal skins work the same way, where vertical skins pressing right usually pops out the sub menu.

The reason you still need to add the source here is so the file system has a direct path. Once it is add here, both the skin and the script will have the ability to add this path.


- harryremon - 2011-08-25

The Version in the official REPO is 1.2.9, why isn't it updated ?? ? ? ? ?


- giftie - 2011-08-25

harryremon Wrote:The Version in the official REPO is 1.2.9, why isn't it updated ?? ? ? ? ?

There was a fairly large change in the script and it needs to be tested throughly before it is posted to the repo. There is a link to the development version on the first page of this thread.