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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] cdART Manager Script (/showthread.php?tid=77031)



- giftie - 2011-07-05 01:24

That should be ok.. As long as XBMC knows the artist as Album artist things should be good since the script asks XBMC for the info.


- jasonlcox - 2011-07-05 01:27

That's good, I was thinking I'd have to re-tag everything. Thanks again, I appreciate your help and patience!


- jasonlcox - 2011-07-05 12:15

Tried with a single share, and set music and fanart paths to this in cdART Manager. Not working so far. Single artist and auto download both give me download errors.

The log for a failed fanart auto download should be here:

http://pastebin.com/ecJhWDXE

(using the Debug log addon for the first time, hope it worked)


- giftie - 2011-07-06 03:49

jasonlcox Wrote:Tried with a single share, and set music and fanart paths to this in cdART Manager. Not working so far. Single artist and auto download both give me download errors.

The log for a failed fanart auto download should be here:

http://pastebin.com/ecJhWDXE

(using the Debug log addon for the first time, hope it worked)

I see two errors(well more than two, but two repeatative errors)

First off, the path you entered as your music path is:
Code:
smb://SMEG/Music for streaming/
correct?

Another Question:
Is the following path correct(captialization and naming)?:
Code:
smb://SMEG/Music for streaming/The Verve

The script is failing when it tries to make some directories(folders) and then fails when trying to copy to some directories(folders)

Also in order to provide me a little more information, could you run XBMC in Debug mode(Settings-->System-->Debugging-->Enable Debugging) then restart XBMC, wait for about 5 mins(this makes a nice an clean log) Then try running the script again, trying atleast each 'Search Artist' once. Exit out of cdART Manager and then use the Debug Log script again(it worked). Running in Debug mode will cause the script to spam the log with info that should help me pin down exactly where the problem is happening and hopefully fix it too.. Smile

Thanks


- jasonlcox - 2011-07-06 10:32

Thanks giftie!

Yes, both of those paths are correct (capitalisation and naming).

I restarted XBMC in Debug mode, waited about 5 minutes, then ran cdART Manager. Tried Search Artist for cdArt and coverart, but after that it stopped working - I'd just get the spinning "working" icon. I could back out of the menu and exit the program, but not run any more searches.

Here is the pastebin:

http://pastebin.com/CS8C3xL1

Would you like me to reboot and try Search Artist for the other categories, or try Auto Download?


- giftie - 2011-07-08 02:26

jasonlcox Wrote:Thanks giftie!

Yes, both of those paths are correct (capitalisation and naming).

I restarted XBMC in Debug mode, waited about 5 minutes, then ran cdART Manager. Tried Search Artist for cdArt and coverart, but after that it stopped working - I'd just get the spinning "working" icon. I could back out of the menu and exit the program, but not run any more searches.

Here is the pastebin:

http://pastebin.com/CS8C3xL1

Would you like me to reboot and try Search Artist for the other categories, or try Auto Download?

I think I have all three of the errors you came across nailed down, just testing on my Dharma system to see if it's fixed.


- jasonlcox - 2011-07-08 14:56

That's excellent, thanks giftie.


- solidsatras - 2011-07-08 23:28

Folder creation on smb-shares seems to be broken at the moment.
This worked last week but with the latest version of cdART(1.3.8) together with today´s nightly it doesn't anymore.

Code:
22:31:15 T:3424 M:2445070336  NOTICE: [script.cdartmanager] - #    Artist: 'The Beatles'                            Local ID: 35           Distant ID: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - #   Finding remote fanart
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - Retrieving artwork for artist id: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - Retrieving HTML Source
22:31:15 T:3424 M:2445070336  NOTICE: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d.xml
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - HTML Source:
                                            <?xml version="1.0"?>
                                            <music id="b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d" name="The Beatles"><backgrounds><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def8588ae28b.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def850949c8f.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def84db0dabd.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4ddaaf1a51231.jpg</background></backgrounds><clearlogos><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e0468cfd92a7.png</clearlogo><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e04679a32bb3.png</clearlogo><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e046694a427b.png</clearlogo></clearlogos><albums><album id="31770e0a-e537-376d-a7c0-48e507f3105e"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/twist-and-shout-4ddaafee14a21.jpg</cover></album><album id="055be730-dcad-31bf-b550-45ba9c202aa3"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/the-beatles-disc-1-4def8ef242c93.jpg</cover></album><album id="9f7a4c28-8fa2-3113-929c-c47a9f7982c3"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/sgt-peppers-lonely-hearts-club-band-4ddaafee19c2a.jpg</cover></album><album id="dca03435-8adb-30a5-ba82-5a162267ff38"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/rubber-soul-4ddaafee1c33b.jpg</cover></album><album id="72d15666-99a7-321e-b1f3-a3f8c09dff9f"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/revolver-4ddaafee1751a.jpg</cover></album><album id="4127b25a-e97f-3604-a0de-046940377d9c"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/revolver--magical-mystery-tour-4ddaafee15daa.jpg</cover></album><album id="de208292-8db5-3aed-a14a-b37a84d8c521"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/please-please-me-4ddaafee1d6c3.jpg</cover></album><album id="bff544a7-56e0-3ed6-9e0f-3b676cca9111"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/let-it-be-4ddaafee1afb4.jpg</cover></album><album id="0d44e1cb-c6e0-3453-8b68-4d2082f05421"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/help-4ddaafee13a81.jpg</cover></album><album id="f50a3b6f-27f0-3832-bd3f-3568dc557d95"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/beatles-for-sale-4ddaafee1ea4b.jpg</cover></album><album id="9162580e-5df4-32de-80cc-f45a8d8a9b1d"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/abbey-road-4ddaafee188a2.jpg</cover></album><album id="06281c4d-112d-33b0-a25b-df63b420eae7"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/a-hard-days-night-4ddaafee0bd80.jpg</cover></album><album id="4f539c70-1a19-37a3-ba14-979f11fc0686"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/1-4def8ef24b165.jpg</cover></album></albums></music>
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - Found FanART
22:31:16 T:3424 M:2445004800   ERROR: Traceback (most recent call last):
22:31:16 T:3424 M:2445004800   ERROR:   File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\down​load.py", line 203, in auto_download
22:31:16 T:3424 M:2445004800   ERROR:     make_dir( auto_art["path"] )
22:31:16 T:3424 M:2445004800   ERROR: WindowsError: [Error 123] Die Syntax f??en Dateinamen, Verzeichnisnamen oder die Datentr?rbezeichnung ist falsch: 'smb://STORAGE/Multimedia/Musik/MP3/_xbmc_alben/The Beatles\\extrafanart'
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - unable to make extrafanart directory

Debug log

Maybe just some problem with the nightly. I will try different versions to verify.


- giftie - 2011-07-11 06:10

solidsatras Wrote:Folder creation on smb-shares seems to be broken at the moment.
This worked last week but with the latest version of cdART(1.3.8) together with today´s nightly it doesn't anymore.

Code:
22:31:15 T:3424 M:2445070336  NOTICE: [script.cdartmanager] - #    Artist: 'The Beatles'                            Local ID: 35           Distant ID: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - #   Finding remote fanart
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - Retrieving artwork for artist id: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d
22:31:15 T:3424 M:2445070336   DEBUG: [script.cdartmanager] - Retrieving HTML Source
22:31:15 T:3424 M:2445070336  NOTICE: b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d.xml
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - HTML Source:
                                            <?xml version="1.0"?>
                                            <music id="b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d" name="The Beatles"><backgrounds><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def8588ae28b.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def850949c8f.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4def84db0dabd.jpg</background><background>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/artistbackground/the-beatles-4ddaaf1a51231.jpg</background></backgrounds><clearlogos><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e0468cfd92a7.png</clearlogo><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e04679a32bb3.png</clearlogo><clearlogo>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/musiclogo/the-beatles-4e046694a427b.png</clearlogo></clearlogos><albums><album id="31770e0a-e537-376d-a7c0-48e507f3105e"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/twist-and-shout-4ddaafee14a21.jpg</cover></album><album id="055be730-dcad-31bf-b550-45ba9c202aa3"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/the-beatles-disc-1-4def8ef242c93.jpg</cover></album><album id="9f7a4c28-8fa2-3113-929c-c47a9f7982c3"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/sgt-peppers-lonely-hearts-club-band-4ddaafee19c2a.jpg</cover></album><album id="dca03435-8adb-30a5-ba82-5a162267ff38"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/rubber-soul-4ddaafee1c33b.jpg</cover></album><album id="72d15666-99a7-321e-b1f3-a3f8c09dff9f"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/revolver-4ddaafee1751a.jpg</cover></album><album id="4127b25a-e97f-3604-a0de-046940377d9c"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/revolver--magical-mystery-tour-4ddaafee15daa.jpg</cover></album><album id="de208292-8db5-3aed-a14a-b37a84d8c521"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/please-please-me-4ddaafee1d6c3.jpg</cover></album><album id="bff544a7-56e0-3ed6-9e0f-3b676cca9111"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/let-it-be-4ddaafee1afb4.jpg</cover></album><album id="0d44e1cb-c6e0-3453-8b68-4d2082f05421"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/help-4ddaafee13a81.jpg</cover></album><album id="f50a3b6f-27f0-3832-bd3f-3568dc557d95"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/beatles-for-sale-4ddaafee1ea4b.jpg</cover></album><album id="9162580e-5df4-32de-80cc-f45a8d8a9b1d"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/abbey-road-4ddaafee188a2.jpg</cover></album><album id="06281c4d-112d-33b0-a25b-df63b420eae7"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/a-hard-days-night-4ddaafee0bd80.jpg</cover></album><album id="4f539c70-1a19-37a3-ba14-979f11fc0686"><cover>http://fanart.tv/music/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d/albumcover/1-4def8ef24b165.jpg</cover></album></albums></music>
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - Found FanART
22:31:16 T:3424 M:2445004800   ERROR: Traceback (most recent call last):
22:31:16 T:3424 M:2445004800   ERROR:   File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\down​load.py", line 203, in auto_download
22:31:16 T:3424 M:2445004800   ERROR:     make_dir( auto_art["path"] )
22:31:16 T:3424 M:2445004800   ERROR: WindowsError: [Error 123] Die Syntax f??en Dateinamen, Verzeichnisnamen oder die Datentr?rbezeichnung ist falsch: 'smb://STORAGE/Multimedia/Musik/MP3/_xbmc_alben/The Beatles\\extrafanart'
22:31:16 T:3424 M:2445004800   DEBUG: [script.cdartmanager] - unable to make extrafanart directory

Debug log

Maybe just some problem with the nightly. I will try different versions to verify.

Actually I don't think it worked before either. At the moment XBMC pre-Eden does not provide the ability to make directories on a samba share(smb://) I think I found some code around the internet that may help(a lot of work just to make a single directory) To get around this, you need to manually make the 'extrafanart' directory in each of your Artist's folders, sorry... Hopefully I'll get the code right for pre-Eden...(even before they add support for it)


- paulonspinto - 2011-07-11 13:16

Loving this script but, at first it scanned my library and it gave me the cdarts, but now i added new items to my music library and the cdART Manager didn't updated the albums.
What can be causing this?

After reading this thread, maybe deleting userdata/addon_data/script.cdartmanager will solve it. I'll try it later.


- giftie - 2011-07-11 20:18

At the moment the script is unable to update its database. You need to build the database if you update XBMC's music library. I hope to add database updating in a near future version. Just select build database from settings and allow it to build its database


- paulonspinto - 2011-07-13 15:47

giftie Wrote:At the moment the script is unable to update its database. You need to build the database if you update XBMC's music library. I hope to add database updating in a near future version. Just select build database from settings and allow it to build its database

Thanks!

When i select build database i guess it crashes, can't try it again now.
But if i delete the file in user data it builds ok!


- giftie - 2011-07-18 14:52

New Versions available... The main fix in these is now the script has the ability to make directories on samba shares. It has been tested on Linux Git, Window's Nightly and Windows 10.1.

pre-Eden - http://www.mediafire.com/file/0aa6cktkcprw867/script.cdartmanager.1.4.0.zip
Dharma - http://www.mediafire.com/file/na6a6hicdmbd074/script.cdartmanager.dharma.1.4.0.zip


If you have any problems, please post with a debug log.. I hope to be able to get these to the official repo soon, but need your help to be sure it is quite bug free... over 170 downloads of 1.3.8 and only two posts of problems(unlikely that was it..)

Thanks....


- jasonlcox - 2011-07-18 15:37

Fantastic, thanks a lot giftie, I'll let you know how it goes.


- sergiocos - 2011-07-18 15:39

I want to let you know that all my previous problems (described in fanart.tv thread) seems to be gone (after rebuilding addon database the script does everything as it should). Thanks for this essential script!