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)



- jasonlcox - 2011-09-20

giftie, something weird just happened - I did a logo automatic download, and cdART Manager gave me a Maroon 5 logo for Meatloaf, and a UB40 logo for Unbelievable Truth. I thought they might have been mistakenly uploaded at fanart.tv, but neither artist has those logos on the site.


- giftie - 2011-09-21

I just discovered this with one of my Artist(Phil Collins ended up with a REM logo) I know what caused that one(a double quote in the album title). I have a feeling that you may also find an Album Cover is displayed incorrectly in both artists. If there is, could you post the Album(s) that show up incorrect.

Pre-eden has gone through some changes as-well that will break the script so I will be working on it soon..


- splnuts - 2011-09-21

http://dl.dropbox.com/u/2892583/xbmc.log

Using eden and it finds all 20000 albums but when building the database it only shows 190 albums and 31 artist.


- jasonlcox - 2011-09-21

giftie Wrote:I have a feeling that you may also find an Album Cover is displayed incorrectly in both artists. If there is, could you post the Album(s) that show up incorrect.

No, the album covers all seemed to be fine, it's just the logos.


- giftie - 2011-09-22

splnuts Wrote:http://dl.dropbox.com/u/2892583/xbmc.log

Using eden and it finds all 20000 albums but when building the database it only shows 190 albums and 31 artist.

It is getting hung up on the double quotes(") on blink-182's Short Bus (7") which is the same hang up I just noticed with one of my Albums(Phil Collins' 12"ers)

Thanks for the log.. Helps out..

Also I noticed that XBMC was updating and cleaning its music database at the same time cdART Manager is pulling information from the Music database. The can cause some false informtion getting into cdART Managers database. You should always wait until XBMC is finished its database work before running cdART manager


- giftie - 2011-09-22

jasonlcox Wrote:No, the album covers all seemed to be fine, it's just the logos.

Can you upload you database(lcdart.db in the userdata/addon_data/script.cdartmanager folder) to dropbox or Mediafire and post me a link(you can send it via PM)

Thanks


- splnuts - 2011-09-22

giftie Wrote:It is getting hung up on the double quotes(") on blink-182's Short Bus (7") which is the same hang up I just noticed with one of my Albums(Phil Collins' 12"ers)

Thanks for the log.. Helps out..

Also I noticed that XBMC was updating and cleaning its music database at the same time cdART Manager is pulling information from the Music database. The can cause some false informtion getting into cdART Managers database. You should always wait until XBMC is finished its database work before running cdART manager

Thanks for the info.


- igbygoesclown - 2011-09-22

Loving this add-on! I did a test run and loaded about a quarter of my music collection to xbmc. Sold by how beautiful it looks I decided to add the rest of it, ran this add-on and automatically downloaded everything I wanted. All the available cdart is there except for the clearlogos. It downloaded and its in the path where I wanted it but its not showing up. How do i fix this? Thanks!


- jasonlcox - 2011-09-22

giftie, just sent you a PM with the link to the database file.


- BigNoid - 2011-09-24

Do you think you can add a solo mode to the script that we can run from inside the skin, in for example song/album/artist info?
The logo download script has this and it's great to search for one particular artwork while browsing your tv show collection. Seems to me this would work very well for this script also, instead of having to back out to the programs section and start the script separately.


- charlieboy2001 - 2011-09-24

Hi there can anyone help!!!

CDArt manager is just getting stuck on creating database it seems to be this bit from the log

[/CODE]
############################################################
20:21:59 T:2680 NOTICE: [script.cdartmanager] - # Setting up Script
20:21:59 T:2680 NOTICE: [script.cdartmanager] - Addon Db Not Found - Building New Addon Db
20:21:59 T:2680 ERROR: Traceback (most recent call last):
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\json_utils.py", line 27, in retrieve_json_dict
20:21:59 T:2680 ERROR: result = response['result']
20:21:59 T:2680 ERROR: KeyError: 'result'
20:21:59 T:2680 ERROR: Traceback (most recent call last):
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 142, in onInit
20:21:59 T:2680 ERROR: self.setup_all()
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 1010, in setup_all
20:21:59 T:2680 ERROR: local_album_count, local_artist_count, local_cdart_count = new_database_setup( self.background )
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\database.py", line 351, in new_database_setup
20:21:59 T:2680 ERROR: local_album_list = get_xbmc_database_info( background )
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\database.py", line 60, in get_xbmc_database_info
20:21:59 T:2680 ERROR: album_list, total = retrieve_album_list()
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\pre_eden_code.py", line 19, in retrieve_album_list
20:21:59 T:2680 ERROR: return json_albums, len(json_albums)
20:21:59 T:2680 ERROR: TypeError: object of type 'NoneType' has no len()
20:30:53 T:4380 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
20:34:13 T:5188 NOTICE: Storing total System Uptime
20:34:13 T:5188 NOTICE: Saving settings
20:34:13 T:5188 NOTICE: stop all
20:34:13 T:5188 NOTICE: ES: Stopping event server
20:34:14 T:3976 NOTICE: ES: UDP Event server stopped
20:34:14 T:5188 NOTICE: stop sap announcement listener
20:34:14 T:5188 NOTICE: clean cached files!
20:34:14 T:5188 NOTICE: unload skin
20:34:14 T:5188 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager
20:34:14 T:5188 ERROR: Previous line repeats 1 times.
20:34:14 T:5188 NOTICE: stop python
20:34:14 T:5188 NOTICE: stopped
20:34:14 T:5188 NOTICE: destroy
20:34:14 T:5188 NOTICE: closing down remote control service
20:34:14 T:5188 NOTICE: unload sections
20:34:14 T:5188 NOTICE: destroy
20:34:14 T:5188 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
20:34:14 T:5188 NOTICE: closing down remote control service
20:34:14 T:5188 NOTICE: unload sections
20:34:14 T:5188 NOTICE: application stopped...
[/CODE]

I have tried deleting cdart manager from all folders, and am using latest nightly build


- giftie - 2011-09-25

Big_Noid Wrote:Do you think you can add a solo mode to the script that we can run from inside the skin, in for example song/album/artist info?
The logo download script has this and it's great to search for one particular artwork while browsing your tv show collection. Seems to me this would work very well for this script also, instead of having to back out to the programs section and start the script separately.

I have a script called cdART One Shot, which is a much scaled down version of cdART Manager, which will be better for a required addon for a skin. I just need to update it to work with fanart.tv and include the logos, coverart and fanart images..

I'll update it soon...


- giftie - 2011-09-25

Changes in XBMC source code often break scripts and this is the case. I'm working on updating the script now(infact testing it right now)

charlieboy2001 Wrote:Hi there can anyone help!!!

CDArt manager is just getting stuck on creating database it seems to be this bit from the log

[/CODE]
############################################################
20:21:59 T:2680 NOTICE: [script.cdartmanager] - # Setting up Script
20:21:59 T:2680 NOTICE: [script.cdartmanager] - Addon Db Not Found - Building New Addon Db
20:21:59 T:2680 ERROR: Traceback (most recent call last):
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\json_utils.py", line 27, in retrieve_json_dict
20:21:59 T:2680 ERROR: result = response['result']
20:21:59 T:2680 ERROR: KeyError: 'result'
20:21:59 T:2680 ERROR: Traceback (most recent call last):
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 142, in onInit
20:21:59 T:2680 ERROR: self.setup_all()
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 1010, in setup_all
20:21:59 T:2680 ERROR: local_album_count, local_artist_count, local_cdart_count = new_database_setup( self.background )
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\database.py", line 351, in new_database_setup
20:21:59 T:2680 ERROR: local_album_list = get_xbmc_database_info( background )
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\database.py", line 60, in get_xbmc_database_info
20:21:59 T:2680 ERROR: album_list, total = retrieve_album_list()
20:21:59 T:2680 ERROR: File "C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\pre_eden_code.py", line 19, in retrieve_album_list
20:21:59 T:2680 ERROR: return json_albums, len(json_albums)
20:21:59 T:2680 ERROR: TypeError: object of type 'NoneType' has no len()
20:30:53 T:4380 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
20:34:13 T:5188 NOTICE: Storing total System Uptime
20:34:13 T:5188 NOTICE: Saving settings
20:34:13 T:5188 NOTICE: stop all
20:34:13 T:5188 NOTICE: ES: Stopping event server
20:34:14 T:3976 NOTICE: ES: UDP Event server stopped
20:34:14 T:5188 NOTICE: stop sap announcement listener
20:34:14 T:5188 NOTICE: clean cached files!
20:34:14 T:5188 NOTICE: unload skin
20:34:14 T:5188 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\Charles T Ellis\AppData\Roaming\XBMC\addons\script.cdartmanager
20:34:14 T:5188 ERROR: Previous line repeats 1 times.
20:34:14 T:5188 NOTICE: stop python
20:34:14 T:5188 NOTICE: stopped
20:34:14 T:5188 NOTICE: destroy
20:34:14 T:5188 NOTICE: closing down remote control service
20:34:14 T:5188 NOTICE: unload sections
20:34:14 T:5188 NOTICE: destroy
20:34:14 T:5188 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
20:34:14 T:5188 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
20:34:14 T:5188 NOTICE: closing down remote control service
20:34:14 T:5188 NOTICE: unload sections
20:34:14 T:5188 NOTICE: application stopped...
[/CODE]

I have tried deleting cdart manager from all folders, and am using latest nightly build



- Kode - 2011-09-28

In the next couple of weeks the new site will be going live (you can see a sneak peek on the facebook page) and the api url will be changing, I havent put up any documentation for it yet, but it will basically follow the tv api which is temporarily documented here: https://docs.google.com/document/d/1hh5F-H0RQecvkhinwtyu2h0mDR94WJffwBsPWkIhms0/edit?hl=en_GB only difference will be instead of series it will be artist and instead of thetvdb_id it will be artist_mbid, I will add more details closer to the time and the old url will still work for a while.

There will probably be a few other differences with the music api, but things like the supported outputs will be the same (xml / json / php serialized array) and to get the same output that you get now the url would be something like http://fanart.tv/artist/211215efd1b535c7dfa31fb60f15ef14/084308bd-1654-436f-ba03-df6697104e19/xml/


No Module named PIL - locomot1f - 2011-10-04

can anyone tell me why I'm getting this error when trying to run cdArtManager:

Code:
10:53:28 T:160194560    INFO: -->Python script returned the following error<--
10:53:28 T:160194560   ERROR: Error Type: <type 'exceptions.ImportError'>
10:53:28 T:160194560   ERROR: Error Contents: No module named PIL
10:53:28 T:160194560   ERROR: Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.cdartmanager/default.py", line 149, in <module>
                                                import gui
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.cdartmanager/resources/lib/gui.py", line 15, in <module>
                                                from PIL import Image
                                            ImportError: No module named PIL
10:53:28 T:160194560    INFO: -->End of Python script error report<--

I'm running:
ATV 2
Latest Nightly:xbmc-20111003-31113d1-master-atv2.deb
using Aeon MQ3 skin (but even get this in Confluence)

I've never gotten this skin to work. I've searched for answers around the PIL module, and everything points to things not related to ATV 2.
is this something missing from the ATV 2? Is anyone else getting this error on the ATV 2? or am I aloneHuh