[RELEASE] cdART Manager Script

  Thread Rating:
  • 6 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
giftie Online
Skilled Python Coder
Posts: 2,036
Joined: Mar 2010
Reputation: 35
Post: #811
(2012-04-15 09:39)Hellnino18 Wrote:  
(2012-04-15 09:34)giftie Wrote:  The path to Music library needs to be set for clearLogos and extrafanarts. It should be the option above the cdART Backup folder.

Why it's not like for cdart and it save each clearLogos in each folder of artist?
XBMC does not provide a path to the Artist level of the music path. It really only provides the track path. A lot of skins use the same method to calculate this path as the script does(I actually fashioned it after Transparency!'s method). This did provide the this artwork(fanart and clearLogos) to be able to be moved to a different path, away from the actual music path.

(2012-04-15 18:23)Hellnino18 Wrote:  Indeed, it was the problem. I put the path to a music library with writeable rights, and everything goes right. Thanks for everyone who help and if you want a change on the french translate, tell me Smile
If you want to translate, I'd be more than happy to include it. If you do, please translate from the script.cdartmanager\resources\language\English\strings.xml file as this is the main language strings.

I look forward to Frodo, when an online system for translating is implemented... Smile

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


find quote
simpic Offline
Junior Member
Posts: 42
Joined: May 2011
Reputation: 0
Post: #812
Hi,

Getting the following error when trying to run the add on...

Code:
18:48:22 T:2232  NOTICE: [script.cdartmanager] - ############################################################
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    cdART Manager                                         #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #        default.py module                                 #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    script.cdartmanager                                   #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Giftie                                                #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    2.5.1                                                 #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Chaos_666, Magnatism, Kode                            #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Thanks for the help guys...                           #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - ############################################################
18:48:23 T:2232   ERROR: Traceback (most recent call last):
18:48:23 T:2232   ERROR:   File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\jso​n_utils.py", line 28, in retrieve_json_dict
18:48:23 T:2232   ERROR:     json_dict = result[items]
18:48:23 T:2232   ERROR: TypeError: 'NoneType' object is unsubscriptable
18:48:23 T:2232  NOTICE: Unexpected error:
18:48:23 T:2232  NOTICE: <type 'exceptions.TypeError'>
18:48:23 T:2232   ERROR: Error Type: <type 'exceptions.TypeError'>
18:48:23 T:2232   ERROR: Error Contents: object of type 'NoneType' has no len()
18:48:23 T:2232   ERROR: Traceback (most recent call last):
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager/default.py", line 66, in <module>
                                                local_album_count, local_artist_count, local_cdart_count = refresh_db( True )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 516, in refresh_db
                                                local_album_count, local_artist_count, local_cdart_count = new_database_setup( background )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 351, in new_database_setup
                                                local_album_list = get_xbmc_database_info( background )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 60, in get_xbmc_database_info
                                                album_list, total = retrieve_album_list()
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\pre​_eden_code.py", line 19, in retrieve_album_list
                                                return json_albums, len(json_albums)
                                            TypeError: object of type 'NoneType' has no len()

Running this set up...

Code:
18:06:25 T:2416  NOTICE: -----------------------------------------------------------------------
18:06:25 T:2416  NOTICE: Starting XBMC (11.0-HD-Audio Git:HD-audio-20120325), Platform: Windows 7, 32-bit Service Pack 1 build 7601. Built on Mar 25 2012 (compiler 1600)
18:06:25 T:2416  NOTICE: AMD Athlon(tm) Dual Core Processor 4850e
18:06:25 T:2416  NOTICE: Desktop Resolution: 1920x1080 32Bit at 60Hz
18:06:25 T:2416  NOTICE: Running with administrator rights
18:06:25 T:2416  NOTICE: Aero is disabled
18:06:25 T:2416  NOTICE: special://xbmc/ is mapped to: C:\Program Files\XBMC
18:06:25 T:2416  NOTICE: special://xbmcbin/ is mapped to: C:\Program Files\XBMC
18:06:25 T:2416  NOTICE: special://masterprofile/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\userdata
18:06:25 T:2416  NOTICE: special://home/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\
18:06:25 T:2416  NOTICE: special://temp/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\cache
18:06:25 T:2416  NOTICE: The executable running is: C:\Program Files\XBMC\XBMC.exe
18:06:25 T:2416  NOTICE: Local hostname: media-PC
18:06:25 T:2416  NOTICE: Log File is located: C:\Users\media\AppData\Roaming\XBMC\xbmc.log

Can you advise why the script is failing?

Regards,

simpic
find quote
Hellnino18 Offline
Member
Posts: 98
Joined: Jan 2011
Reputation: 0
Post: #813
(2012-04-15 18:59)giftie Wrote:  
(2012-04-15 09:39)Hellnino18 Wrote:  
(2012-04-15 09:34)giftie Wrote:  The path to Music library needs to be set for clearLogos and extrafanarts. It should be the option above the cdART Backup folder.

Why it's not like for cdart and it save each clearLogos in each folder of artist?
XBMC does not provide a path to the Artist level of the music path. It really only provides the track path. A lot of skins use the same method to calculate this path as the script does(I actually fashioned it after Transparency!'s method). This did provide the this artwork(fanart and clearLogos) to be able to be moved to a different path, away from the actual music path.

(2012-04-15 18:23)Hellnino18 Wrote:  Indeed, it was the problem. I put the path to a music library with writeable rights, and everything goes right. Thanks for everyone who help and if you want a change on the french translate, tell me Smile
If you want to translate, I'd be more than happy to include it. If you do, please translate from the script.cdartmanager\resources\language\English\strings.xml file as this is the main language strings.

I look forward to Frodo, when an online system for translating is implemented... Smile

I will help you, no problem and I will MP you to send the translate, or you want another way to get the new translate file?
(This post was last modified: 2012-04-15 23:16 by Hellnino18.)
find quote
Hellnino18 Offline
Member
Posts: 98
Joined: Jan 2011
Reputation: 0
Post: #814
I have the same error than simpic...
find quote
giftie Online
Skilled Python Coder
Posts: 2,036
Joined: Mar 2010
Reputation: 35
Post: #815
Have you built your music library in XBMC?

and a debug log would be needed to figure out the error.

(2012-04-15 19:51)simpic Wrote:  Hi,

Getting the following error when trying to run the add on...

Code:
18:48:22 T:2232  NOTICE: [script.cdartmanager] - ############################################################
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    cdART Manager                                         #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #        default.py module                                 #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    script.cdartmanager                                   #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Giftie                                                #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    2.5.1                                                 #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Chaos_666, Magnatism, Kode                            #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - #    Thanks for the help guys...                           #
18:48:22 T:2232  NOTICE: [script.cdartmanager] - ############################################################
18:48:23 T:2232   ERROR: Traceback (most recent call last):
18:48:23 T:2232   ERROR:   File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\jso​n_utils.py", line 28, in retrieve_json_dict
18:48:23 T:2232   ERROR:     json_dict = result[items]
18:48:23 T:2232   ERROR: TypeError: 'NoneType' object is unsubscriptable
18:48:23 T:2232  NOTICE: Unexpected error:
18:48:23 T:2232  NOTICE: <type 'exceptions.TypeError'>
18:48:23 T:2232   ERROR: Error Type: <type 'exceptions.TypeError'>
18:48:23 T:2232   ERROR: Error Contents: object of type 'NoneType' has no len()
18:48:23 T:2232   ERROR: Traceback (most recent call last):
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager/default.py", line 66, in <module>
                                                local_album_count, local_artist_count, local_cdart_count = refresh_db( True )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 516, in refresh_db
                                                local_album_count, local_artist_count, local_cdart_count = new_database_setup( background )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 351, in new_database_setup
                                                local_album_list = get_xbmc_database_info( background )
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\dat​abase.py", line 60, in get_xbmc_database_info
                                                album_list, total = retrieve_album_list()
                                              File "C:\Users\media\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\pre​_eden_code.py", line 19, in retrieve_album_list
                                                return json_albums, len(json_albums)
                                            TypeError: object of type 'NoneType' has no len()

Running this set up...

Code:
18:06:25 T:2416  NOTICE: -----------------------------------------------------------------------
18:06:25 T:2416  NOTICE: Starting XBMC (11.0-HD-Audio Git:HD-audio-20120325), Platform: Windows 7, 32-bit Service Pack 1 build 7601. Built on Mar 25 2012 (compiler 1600)
18:06:25 T:2416  NOTICE: AMD Athlon(tm) Dual Core Processor 4850e
18:06:25 T:2416  NOTICE: Desktop Resolution: 1920x1080 32Bit at 60Hz
18:06:25 T:2416  NOTICE: Running with administrator rights
18:06:25 T:2416  NOTICE: Aero is disabled
18:06:25 T:2416  NOTICE: special://xbmc/ is mapped to: C:\Program Files\XBMC
18:06:25 T:2416  NOTICE: special://xbmcbin/ is mapped to: C:\Program Files\XBMC
18:06:25 T:2416  NOTICE: special://masterprofile/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\userdata
18:06:25 T:2416  NOTICE: special://home/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\
18:06:25 T:2416  NOTICE: special://temp/ is mapped to: C:\Users\media\AppData\Roaming\XBMC\cache
18:06:25 T:2416  NOTICE: The executable running is: C:\Program Files\XBMC\XBMC.exe
18:06:25 T:2416  NOTICE: Local hostname: media-PC
18:06:25 T:2416  NOTICE: Log File is located: C:\Users\media\AppData\Roaming\XBMC\xbmc.log

Can you advise why the script is failing?

Regards,

simpic


(2012-04-15 21:29)Hellnino18 Wrote:  I have the same error than simpic...

I thought you were already running the script, only having a problem with clearLOGOs. simpic is having a problem when the script is first run(when it builds the addon's database)

[Image: e4f63e45ba34fe4695b3bb08eb2499d8e4ee484e...4c076g.jpg]
For troubleshooting and bug reporting please make sure you read this first you can also use XBMC Log Uploader Script.
Cinema Experience
Cinema Experience Wiki
cdART Manager
fanart.tv


(This post was last modified: 2012-04-16 00:35 by giftie.)
find quote
simpic Offline
Junior Member
Posts: 42
Joined: May 2011
Reputation: 0
Post: #816
HI,

Re scanned the library and it is now running through all the item in the music folders.

It does seem to be having issues connecting to MusicBrainz...

Code:
09:44:06 T:4612   DEBUG: [script.cdartmanager] - Retieving MusicBrainz Info - Not including Singles
09:44:06 T:4612   DEBUG: [script.cdartmanager] - Artist: 'Arctic Monkeys'
09:44:06 T:4612   DEBUG: [script.cdartmanager] - Album: 'Favourite Worst Nightmare'
09:44:06 T:5892   ERROR: [script.cdartmanager] - Error: HTTP Error 503: Service Unavailable
09:44:07 T:5892   ERROR: Previous line repeats 1 times.
09:44:07 T:5892   DEBUG: [script.cdartmanager] - MusicBrainz AlbumId:
09:44:07 T:5892   DEBUG: [script.cdartmanager] - MusicBrainz ArtistId:
find quote
shaktoo Offline
Fan
Posts: 635
Joined: Mar 2010
Reputation: 3
Location: in LIMBO
Post: #817
Giftie is there anyway to backup the cdartmanager's database ( not the cdarts or fanarts etc ) . I have recently had to reinstall XBMC from scratch ( 2-3 times)and frankly having to buildup database for 2000 albums is really a PITA. Is there any way that I could just backup the db file and just replace that incase of reinstalling.( Could it be that I just go into the userdata/addon database/ cdartmanager & see if there is a db file copy that and replace in case of a reinstall?) BTW I tried searching in the thread & in google but could find any related posts. I am on Winders7x64 with eden 11& AeonNox. Thanks
(This post was last modified: 2012-04-16 14:00 by shaktoo.)
find quote
Martijn Online
Team-XBMC
Posts: 7,701
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #818
(2012-04-16 13:49)shaktoo Wrote:  Giftie is there anyway to backup the cdartmanager's database ( not the cdarts or fanarts etc ) . I have recently had to reinstall XBMC from scratch ( 2-3 times)and frankly having to buildup database for 2000 albums is really a PITA. Is there any way that I could just backup the db file and just replace that incase of reinstalling.( Could it be that I just go into the userdata/addon database/ cdartmanager & see if there is a db file copy that and replace in case of a reinstall?) BTW I tried searching in the thread & in google but could find any related posts. I am on Winders7x64 with eden 11& AeonNox. Thanks

That should do it unless there was a program update which needs a newer db. Your music also needs to be in the exact same way stored in your rebuild xbmc database

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
shaktoo Offline
Fan
Posts: 635
Joined: Mar 2010
Reputation: 3
Location: in LIMBO
Post: #819
Thanks Martijn,
Could a similar option to backup data ( esp if no changes in music library structure ) be incorporated & for importing in case of a reinstall ? if that's not too much that is ..might just help ppl. who find themselves reinstalling to have such option in the GUI
BTW any thoughts on my post http://forum.xbmc.org/showthread.php?tid=128927
find quote
Martijn Online
Team-XBMC
Posts: 7,701
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #820
Don't see the point in adding that for those realy rare cases.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
Post Reply