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)



- TRaSH - 2012-01-06

Blush
how stupid someone can be,
i added my music but forgot to add the music to the libary.
now i need to bug the skin maker if it's possible to enter the music libary in 1 click without choosing the music folder first when pressing on music.
thnx for pointing me out to my failure Wink


- mrjibbles - 2012-01-06

Sorry, just read support request info on 1st page!
Here is link to debug log:

http://pastebin.com/TADU9J2f

Cheers
mrjibbles
Acer Revo R3700 - Openelec 1.0.2 - Aeon MQ3 Skin - XBMC 10.1 Dharma


- xbmcg - 2012-01-06

Hallo,

i tried theaddon, however it takes hours to run and locks the whole xbmc UI, and finally there is no library in the pointed location, only the settings.xml is there. Unfortunately, one cannot access any menus / settings before the scan has finished so what can I do?

Code:
11:35:57 T:2904  NOTICE: -->Python Interpreter Initialized<--
11:36:04 T:636 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
11:36:09 T:2240  NOTICE: -->Python Interpreter Initialized<--
11:36:09 T:2240  NOTICE: [script.cdartmanager] - ############################################################
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    cdART Manager                                         #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #        default.py module                                 #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    script.cdartmanager                                   #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    Giftie                                                #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    2.5.1                                                 #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    Chaos_666, Magnatism, Kode                            #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - #    Thanks for the help guys...                           #
11:36:09 T:2240  NOTICE: [script.cdartmanager] - ############################################################
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Addon Work Folder: C:\Users\XBMC\AppData\Roaming\XBMC\userdata\profiles\Local\addon_data\script.cdartmanager\
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Addon Database: C:\Users\XBMC\AppData\Roaming\XBMC\userdata\profiles\Local\addon_data\script.cdartmanager\l_cdart.db
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Addon settings: C:\Users\XBMC\AppData\Roaming\XBMC\userdata\profiles\Local\addon_data\script.cdartmanager\settings.xml
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Looking for settings.xml
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
11:36:09 T:2240  NOTICE: [script.cdartmanager] - Addon Db not found, Must Be First Run
11:36:10 T:2240  NOTICE: ascii
11:36:10 T:2240  NOTICE: [script.cdartmanager] - ############################################################
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    cdART Manager                                         #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #        gui.py module                                     #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    script.cdartmanager                                   #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    Giftie                                                #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    2.5.1                                                 #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    Chaos_666, Magnatism, Kode                            #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - #    Thanks for the help...                                #
11:36:10 T:2240  NOTICE: [script.cdartmanager] - ############################################################
11:36:10 T:2240  NOTICE: [script.cdartmanager] - # Setting up Script
11:36:10 T:2240  NOTICE: [script.cdartmanager] - Addon Db Not Found - Building New Addon Db
11:36:11 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 503:
11:36:26 T:2240   ERROR: Previous line repeats 5 times.
11:36:26 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 400:
11:36:29 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 503:
11:37:04 T:2240   ERROR: Previous line repeats 12 times.
11:37:04 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 400:
11:37:07 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 503:
11:37:27 T:2240   ERROR: Previous line repeats 6 times.
11:37:27 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 400:
11:37:33 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 503:
11:37:58 T:2240   ERROR: Previous line repeats 8 times.
...
17:08:59 T:2240   ERROR: Previous line repeats 3 times.
17:08:59 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 400:
17:09:00 T:2240   ERROR: [script.cdartmanager] - Error: HTTP Error 503:
...



- giftie - 2012-01-07

OpenElec is not Dharma compatible or Eden compatible(it's some where inbetween.) The next release of the script will be have OpenElec compatiblity for the Dharma version.

mrjibbles Wrote: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



- giftie - 2012-01-07

xbmcg Wrote:Hallo,

i tried theaddon, however it takes hours to run and locks the whole xbmc UI, and finally there is no library in the pointed location, only the settings.xml is there. Unfortunately, one cannot access any menus / settings before the scan has finished so what can I do?
A full debug log is mandatory for bug reporting.


- soldave - 2012-01-10

Wonder if someone can give me a hand here. Am doing an automatic download of fanarts which is creating the extrafanart folder and files in there for each artist, as it should. But there is no fanart.jpg in the individual artist folder. Is there any way to get CDArt Manager to select any fanart as a default, so that when Aeon MQ3 searches the artist directories for fanart to display on the Home Screen (music not playing but music selected) then fanart will appear?

Does that make any sense at all?


- giftie - 2012-01-12

soldave Wrote:Wonder if someone can give me a hand here. Am doing an automatic download of fanarts which is creating the extrafanart folder and files in there for each artist, as it should. But there is no fanart.jpg in the individual artist folder. Is there any way to get CDArt Manager to select any fanart as a default, so that when Aeon MQ3 searches the artist directories for fanart to display on the Home Screen (music not playing but music selected) then fanart will appear?

Does that make any sense at all?

The autodownload for fanart only downloads to extrafanart. to get the fanart.jpg in the primary folder, you need to use the search artist.


- tormi - 2012-01-15

Is there any quick way to see which fanart/cdart etc you are missing in your library?


- giftie - 2012-01-15

tormi Wrote:Is there any quick way to see which fanart/cdart etc you are missing in your library?

Inside the folder you may have set up as a backup folder there is a file called missing.txt. This olny contains the missing cdARTs(the script does not keep track of fanarts so there is no list) Oh, this file also is available in the /.xbmc/userdata/addon_data/script.cdartmanager/


- tormi - 2012-01-15

giftie Wrote:Inside the folder you may have set up as a backup folder there is a file called missing.txt. This olny contains the missing cdARTs(the script does not keep track of fanarts so there is no list) Oh, this file also is available in the /.xbmc/userdata/addon_data/script.cdartmanager/

Awesome thanks. Would love to have the option to see the other missing stuff Smile


- tinfox - 2012-01-17

Curious how long it would take to build the initial database with around 10k files?

Does it need to be refreshed when more songs are added?


- giftie - 2012-01-17

tinfox Wrote:Curious how long it would take to build the initial database with around 10k files?

If everything runs proper, it takes about a second per disc. It can take upto 30 seconds per ablum depending on how easily the ablum is match on MusicBrainz. It takes my library of approximently 2hrs 2000 disc(25000 tracks) which is about 3.6 seconds per album which is not that bad. If problems happen(ie MusicBrainz is over loaded) the script waits 5 seconds(and repeats the try 5 times if needed)

Also if you don't have your music sorted out in the following fashion, cdARTs and CoverARTs are quite useless to you:
Album
------tracks.mp3

to get the best use of everything the following layout is suggested.

Artist
------>Album
--------------->track.mp3
------>Album
--------------->track.mp3(or any othe music extention)
Artist
------>Album
--------------->track.mp3

You can keep the Artist Logos and fanarts out of this area by setting the 'Path to music library' to an Artwork folder(set this in both the skin and the script)

Quote:Does it need to be refreshed when more songs are added?
At the moment yes it does. I am trying to work out the best method of allowing to update but it is not as simple as one might think...


- oceanis - 2012-01-20

I'm sorry if this has already been asked elsewhere, but I've searched for about an hour with no success. CDart seems to be running fine for me, creates the clearart.jpg fine. However its not creating the fanart.jpg for any music that I can see. The only way I can get it to download the fanart properly is to manualy download each one rather than doing it automatically. Does anyone know why it would be downloading clearart properly and not fanart?
Thanks!


- giftie - 2012-01-20

oceanis Wrote:I'm sorry if this has already been asked elsewhere, but I've searched for about an hour with no success. CDart seems to be running fine for me, creates the clearart.jpg fine. However its not creating the fanart.jpg for any music that I can see. The only way I can get it to download the fanart properly is to manualy download each one rather than doing it automatically. Does anyone know why it would be downloading clearart properly and not fanart?
Thanks!

By design, cdART Manager only downloads fanart.jpg when you use the manual(Search Artist) option. Extrafanarts download through the Autodownload method.

This has been the second time this has been asked, which means that there are a few others(though afraid to ask Smile ) out there... It's not a problem for me to add it to the next release.


- oceanis - 2012-01-20

giftie Wrote:By design, cdART Manager only downloads fanart.jpg when you use the manual(Search Artist) option. Extrafanarts download through the Autodownload method.

This has been the second time this has been asked, which means that there are a few others(though afraid to ask Smile ) out there... It's not a problem for me to add it to the next release.
That would explain, things then Smile I'm using mq3 and I used fanart downloaded for my TV shows/movies so they display the fan art in the background fine, but couldn't work out why only the music wasn't working!
If you could integrate it that would be amazing! Thank you Smile