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)



- giftie - 2011-12-21

Positrongeek Wrote:I managed to get a debug log made of the problem of not finding any artwork. The artists are well known artist like Adele or the Foo Fighters not some strange unknown person. Here's the log:

http://pastebin.com/rZPP6tg2

I hope you can work it out. I appreciate any help.

Thanks

You will need to rebuild the script's database while in debug mode(the issue is probably happening then), then post that complete debug log.


Fixed the problem - Positrongeek - 2011-12-21

I had a bit of a think about it and tried changing the directory structure of the music files and it seems to have helped. I originally had artist/album/track, so I changed it to artist/artist - album/track and now it works. Look sorry for all the fuss. This is a truly amazing addon. Congratulations to all involved especially you Giftie. Just a quick question before I go, when I start playing a song and then go into the main XBMC menu it shows the album with the CD spinning which looks terrific, however the background shows the coloured columns going up and down. Is there any way of getting it to show fanart instead? Appreciate everyones help. Have a great Christmas everyone.


- Martijn - 2011-12-21

Positrongeek Wrote:I had a bit of a think about it and tried changing the directory structure of the music files and it seems to have helped. I originally had artist/album/track, so I changed it to artist/artist - album/track and now it works. Look sorry for all the fuss. This is a truly amazing addon. Congratulations to all involved especially you Giftie. Just a quick question before I go, when I start playing a song and then go into the main XBMC menu it shows the album with the CD spinning which looks terrific, however the background shows the coloured columns going up and down. Is there any way of getting it to show fanart instead? Appreciate everyones help. Have a great Christmas everyone.

It should be independant of your music folder structure however if this works for you Smile

The coulored bars is the music viz. This is skin specific and can usually be disabled by pressing 'S' and disabling 'music visualization'.


- rickster1978 - 2011-12-21

I've deletes my existing .db file activated debugging and gone into the cdart program. It's taking forever to create my addon database this time but as soon as its finished I shall dump the log into pastebin and put the link on here.


- rickster1978 - 2011-12-21

And now it's decided to work!! How odd. I didn't change any settings I just deleted the .db file and started again. It's happily downloading all the cdarts as I type this.


- rickster1978 - 2011-12-21

Now its all working I just have one very quick question. How do I get all the music fanart I've downloaded through the CDArt script to display when I'm playing music.

I previously had fanart for all of my cd's but some of the new fanart is better. Is there an easy way to do it or is it just a case of going into the menu from each artist and updating the fanart. Also where exactly is the fanart that I've downloaded stored? I did have a quick browse but couldn't find it easily.

I thought it was one of the directories I set at the start but I couldn't find it there.


- Martijn - 2011-12-21

rickster1978 Wrote:Now its all working I just have one very quick question. How do I get all the music fanart I've downloaded through the CDArt script to display when I'm playing music.

I previously had fanart for all of my cd's but some of the new fanart is better. Is there an easy way to do it or is it just a case of going into the menu from each artist and updating the fanart. Also where exactly is the fanart that I've downloaded stored? I did have a quick browse but couldn't find it easily.

I thought it was one of the directories I set at the start but I couldn't find it there.

If you did autodownload:
<folder you set>/artist/extrafanart/<here are the images>

Usually you need to set the music path in the skin to that same location.


- giftie - 2011-12-22

rickster1978 Wrote:And now it's decided to work!! How odd. I didn't change any settings I just deleted the .db file and started again. It's happily downloading all the cdarts as I type this.

Are you by chance using a Dharma Version(10.1) on a Windows machine?


- giftie - 2011-12-22

rickster1978 Wrote:Now its all working I just have one very quick question. How do I get all the music fanart I've downloaded through the CDArt script to display when I'm playing music.

I previously had fanart for all of my cd's but some of the new fanart is better. Is there an easy way to do it or is it just a case of going into the menu from each artist and updating the fanart. Also where exactly is the fanart that I've downloaded stored? I did have a quick browse but couldn't find it easily.

I thought it was one of the directories I set at the start but I couldn't find it there.

The path you set as you Music Library needs to be also set in most skins(inside skin settings) This is for the logo to be available and the extrafanarts to show. Only some skins show the fanart while playing(most)

This folder is for ClearLOGOs and extrafanarts. cdARTs, cover Art all get downloaded to the music library. This folder can be just an artwork folder(keeping the your music library clean)


- Omegatron - 2012-01-02

Hi,

im back.... Couple of weeks ago i started with this addon putting everything it downloaded in my music folder. You can imagene its very cluttered now.

So i started from scratch again. I made a directory c:\cdart and the script downloaded all the extrafanart and clearlogo's in this directory. The cdart was added to my actual music directory.

Now im using Aeon MQ3 and maybe its a skin related problem but this is whats happening.

When playing the music it gets the extrafanart (that i had to set the path for in the skin) and the cdart + folder as it should. But the clearlogo's that are downloaded aswell are not shown in the main menu when playing a song.

As far as i could tell the only settings in Aeon MQ3 are for the extrafnart (wich works) and to set a path for clearlogo to be shown in music list (in the libary ic the logo's). So there is no setting for clearlogo in main menu then only turning it on or off (its on).

When i get the logo from the cdart folder (the cdart manager provided this) and put it in my music libary (in artist folder where the actual music is located) it works. Meaning if i want it to make it work i have to manually copy/paste all clearlogo's to my music folder. This is not something i want to do everytime (got lots of music).

Is this a skin problem or is there a setting in cdartmanager somewhere so i can say in what folder to put only the clearlogo's? since cdart and fodler.jpg are downloaded directly in the music folder the solution for me would be when it downloaded the clearlogo directly into the music folder aswell.

I hope i could explain my problem so you actually know what is going on Wink

thanks.


- Martijn - 2012-01-02

Ajedi Wrote:I hope i could explain my problem so you actually know what is going on Wink

thanks.

Skin 'problem'. All other skins get the logo where the extrafanart is located.
It is normal that the cdart and folder.jpg is download into you music library because it has always been that way.

Think Giftie can make an extra option for this however this will have to be discussed with other skinners as well IMO.
Because when you switch to another skin you will have to download everything again but to 'default ' place so you will end up with double the artwork.


- Omegatron - 2012-01-02

thanks for clearing it up.

Ill ask Marcos (AEON MQ 3 skinner) if he can add an extra setting for clearart logos. Then my problem (and i think for a lot of MQ3 users that dont want to have a cluttered music libary) will be solved

thanks!


- TRaSH - 2012-01-05

DEBUG

when running the script,
the script gives me a error.
tried several re-installs but nothing helpen


- giftie - 2012-01-06

Do you have you music imported into the Music Library(XBMC)?


- mrjibbles - 2012-01-06

Hi,
I am a newbie just setting this up on Openelec 10.2, and it seems to hang on the below message when I try and get the artwork for my music:

Creating Addon Database
Retrieving Album Details

Below is the messages from the xbmc.log:
09:01:31 T:140601776895968 M:1727688704 ERROR: GetDirectory - Error getting zip://%2fvar%2fmedia%2fMedia%2fMusic%2ftest%2ezip/
09:01:32 T:140601618048768 M:1722372096 ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/7/7644022f.tbn from image /var/media/Media/Music/101 Club Anthems Disc 3/Folder.jpg
09:01:32 T:140601496639232 M:1722245120 ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/7/72851f98.tbn from image /var/media/Media/Music/101 Club Anthems Disc 2/Folder.jpg
09:01:32 T:140601505031936 M:1721864192 ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/7/7fc63941.tbn from image /var/media/Media/Music/101 Club Anthems Disc 1/Folder.jpg
09:01:32 T:140601525794560 M:1721229312 ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/6/6803522a.tbn from image /var/media/Media/Music/101 Club Anthems Disc 4/Folder.jpg
09:01:41 T:140601488246528 M:1722449920 NOTICE: -->Python Interpreter Initialized<--
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - ############################################################
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # cdART Manager #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # default.py module #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # script.cdartmanager #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # Giftie #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # 1.5.3 #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - # Thanks for the help guys... #
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - ############################################################
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Addon Work Folder: /storage/.xbmc/userdata/addon_data/script.cdartmanager/
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Addon Database: /storage/.xbmc/userdata/addon_data/script.cdartmanager/l_cdart.db
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Addon settings: /storage/.xbmc/userdata/addon_data/script.cdartmanager/settings.xml
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Looking for settings.xml
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
09:01:42 T:140601488246528 M:1717940224 NOTICE: [script.cdartmanager] - Addon Db not found, Must Be First Run
09:01:43 T:140601488246528 M:1714929664 NOTICE: ascii
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - ############################################################
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # cdART Manager #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # gui.py module #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # script.cdartmanager #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # Giftie #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # 1.5.3 #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - # Thanks for the help... #
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - ############################################################
09:01:43 T:140601488246528 M:1714929664 NOTICE: [script.cdartmanager] - Setting up Script
09:01:43 T:140601488246528 M:1678966784 NOTICE: [script.cdartmanager] - Addon Db Not Found - Building New Addon Db
09:01:43 T:140601488246528 M:1678966784 NOTICE: Traceback (most recent call last):
09:01:43 T:140601488246528 M:1678966784 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/json_utils.py", line 28, in retrieve_json_dict
09:01:43 T:140601488246528 M:1678966784 NOTICE: json_dict = result[items]
09:01:43 T:140601488246528 M:1678966784 NOTICE: TypeError: 'NoneType' object is unsubscriptable
09:01:43 T:140601488246528 M:1678966784 NOTICE: Traceback (most recent call last):
09:01:43 T:140601488246528 M:1678966784 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 147, in onInit
09:01:43 T:140601488246528 M:1678966784 NOTICE: self.setup_all()
09:01:43 T:140601488246528 M:1678966784 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 1010, in setup_all
09:01:43 T:140601488246528 M:1678966784 NOTICE: local_album_count, local_artist_count, local_cdart_count = new_database_setup( self.background )
09:01:43 T:140601488246528 M:1678966784 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/database.py", line 331, in new_database_setup
09:01:43 T:140601488246528 M:1678839808 NOTICE: local_album_list = get_xbmc_database_info( background )
09:01:43 T:140601488246528 M:1678839808 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/database.py", line 54, in get_xbmc_database_info
09:01:43 T:140601488246528 M:1678839808 NOTICE: album_list, total = retrieve_album_list()
09:01:43 T:140601488246528 M:1678839808 NOTICE: File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/dharma_code.py", line 19, in retrieve_album_list
09:01:43 T:140601488246528 M:1678839808 NOTICE: return json_albums, len(json_albums)
09:01:43 T:140601488246528 M:1678839808 NOTICE: TypeError: object of type 'NoneType' has no len()

Thanks in advance!
Cheers
mrjibbles