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-06-24

solidsatras Wrote:Yesterday I had the urge to jump on the nightly-train and finally use my small music collection in XBMC.
All my music is tagged with MusicBrainz's Picard.
I can´t get the cdART Manager Script(v.1.3.5) to work. Whenever I activate a search nothing happens:
Image
Doesn´t matter how long I wait and ~60 albums should take that long I think.
Already tested with Confluence & latest SVN Transparency.

Here is a Debug Log:
http://pastebin.com/TpCxw59h

Maybe there is a bug, maybe I´m doing something wrong.
Would be great if you could take a look.


Do to this problem:





I´m not completely sure which options I have activated.

The actual problem appeared when a new artist was added to fanart.tv that caused the script to use code that was not used before(not a fault of fanart.tv, just missing something in the script.)

The error showed up to me yesterday afternoon...

Here is a link to the updated version --> http://www.mediafire.com/file/924372bzj282dkx/script.cdartmanager.1.3.6.zip


- giftie - 2011-06-24

Kode Wrote:Looks like there is an error here:

ERROR: File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\gui.py", line 1059, in onClick
ERROR: distant_artist = get_distant_artists()
ERROR: File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\fanarttv_scraper.py", line 194, in get_distant_artists
ERROR: distant["name"] = unescape( ( item.group(2).replace("&", "&") ) )
ERROR: File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\utils.py", line 104, in unescape
ERROR: return re.sub("&#?\w+;", fixup, text)
ERROR: File "C:\XBMC\system\python\Lib\re.py", line 151, in sub
ERROR: return _compile(pattern, 0).sub(repl, string, count)
ERROR: File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.cdartmanager\resources\lib\utils.py", line 100, in fixup
ERROR: text = unichr(htmlentitydefs.name2codepoint[text[1:-1]])
ERROR: NameError
ERROR: :
ERROR: global name 'htmlentitydefs' is not defined

Not really sure what it means though Tongue

In case you wanted to know.... it where the script converts the HTML escape codes to python escape codes. Smile


- solidsatras - 2011-06-24

giftie Wrote:Here is a link to the updated version --> http://www.mediafire.com/file/924372bzj282dkx/script.cdartmanager.1.3.6.zip

works perfect now...you are the best Nod


- solidsatras - 2011-06-25

One little question is left. Is there a reason why I can´t
choose a Network Path(SMB in my case) for the "Path to
the Music Library) ?
Image
At the moment "cdart & folder" are saved at my NAS.
"logo & extrafanart" are saved local in above mentioned path.


I reworked the german language file:
http://pastebin.com/23u5qSjr
Hope it´s understandable.


- giftie - 2011-06-25

solidsatras Wrote:One little question is left. Is there a reason why I can´t
choose a Network Path(SMB in my case) for the "Path to
the Music Library) ?
Image
At the moment "cdart & folder" are saved at my NAS.
"logo & extrafanart" are saved local in above mentioned path.


I reworked the german language file:
http://pastebin.com/23u5qSjr
Hope it´s understandable.

You need to add your network path as a file source, Home Menu -> Settings Drop down/slide out menu -> File Manager -> Add Source -> Browse -> Add Network Location -> Browse - Find your share, and finish off the info and click ok.

Thanks for the translation..


- Kode - 2011-06-26

giftie: I tried installing the newest cdart manager, whenever I try to start it it fails though, and the error log says:

23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - ############################################################
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Work Folder: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Database: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/l_cdart.db
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon settings: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/settings.xml
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Looking for settings.xml
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Db Found, Checking Database Version
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Looking for database version: 1.3.2
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Database matched
23:20:00 T:2924477296 M:1884102656 INFO: -->Python script returned the following error<--
23:20:00 T:2924477296 M:1884102656 ERROR: Error Type: <type 'exceptions.ImportError'>
23:20:00 T:2924477296 M:1884102656 ERROR: Error Contents: No module named PIL
23:20:00 T:2924477296 M:1884102656 ERROR: Traceback (most recent call last):
File "/home/kode/.xbmc/addons/script.cdartmanager/default.py", line 135, in <module>
import gui
File "/home/kode/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 25, in <module>
from PIL import Image
ImportError: No module named PIL
23:20:00 T:2924477296 M:1884102656 INFO: -->End of Python script error report<--
23:20:00 T:2924477296 M:1884102656 INFO: Python script stopped
23:20:00 T:2924477296 M:1884102656 DEBUG: Thread Python Thread 2924477296 terminating


Any ideas?


- giftie - 2011-06-26

Kode Wrote:giftie: I tried installing the newest cdart manager, whenever I try to start it it fails though, and the error log says:

23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - ############################################################
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Work Folder: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Database: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/l_cdart.db
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon settings: /home/kode/.xbmc/userdata/addon_data/script.cdartmanager/settings.xml
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Looking for settings.xml
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Work Folder Found, Checking For Database
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Addon Db Found, Checking Database Version
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Looking for database version: 1.3.2
23:20:00 T:2924477296 M:1884102656 NOTICE: [script.cdartmanager] - Database matched
23:20:00 T:2924477296 M:1884102656 INFO: -->Python script returned the following error<--
23:20:00 T:2924477296 M:1884102656 ERROR: Error Type: <type 'exceptions.ImportError'>
23:20:00 T:2924477296 M:1884102656 ERROR: Error Contents: No module named PIL
23:20:00 T:2924477296 M:1884102656 ERROR: Traceback (most recent call last):
File "/home/kode/.xbmc/addons/script.cdartmanager/default.py", line 135, in <module>
import gui
File "/home/kode/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 25, in <module>
from PIL import Image
ImportError: No module named PIL
23:20:00 T:2924477296 M:1884102656 INFO: -->End of Python script error report<--
23:20:00 T:2924477296 M:1884102656 INFO: Python script stopped
23:20:00 T:2924477296 M:1884102656 DEBUG: Thread Python Thread 2924477296 terminating


Any ideas?

Are compiling your own XBMC? if so, the script.module.pil does not seem to be being compiled...

Since you are running Linux, and nightly, run 'sudo aptitude install python-imaging' from the command line, this will install it into Linux and the script.module.pil is not needed..


- Kode - 2011-06-26

No, it's just xbmc live that I updated to use nightlies


- giftie - 2011-06-26

Kode Wrote:No, it's just xbmc live that I updated to use nightlies

Still Linux.. Smile If I remember correctly you need to access the command line by CTRL-ALT-F1, then log in(I think the default is xbmc for login and pass) then 'sudo aptitude install python-imaging' then CTRL-ALT-F7 to get back to XBMC..


- Kode - 2011-06-26

I'm logged in with ssh, that seemed to do it, thanks, there's no way I'd have worked that one out on my own, lol


- giftie - 2011-06-26

Kode Wrote:I'm logged in with ssh, that seemed to do it, thanks, there's no way I'd have worked that one out on my own, lol

lol.. I guess it is no longer part of the nightlies... I'll have a look to see whats up there...


- SamHill - 2011-06-26

Any idea what this means.

Code:
22:37:21 T:6712 M:712245248  
ERROR: Traceback (most recent call last):
File "C:\Documents and Settings\Peter Rose\Application Data\XBMC\addons\script.cdartmanager\default.py", line 21, in ? from xbmcvfs import delete as delete_file
ImportError: No module named xbmcvfs



- giftie - 2011-06-26

SamHill Wrote:Any idea what this means.

Code:
22:37:21 T:6712 M:712245248  
ERROR: Traceback (most recent call last):
File "C:\Documents and Settings\Peter Rose\Application Data\XBMC\addons\script.cdartmanager\default.py", line 21, in ? from xbmcvfs import delete as delete_file
ImportError: No module named xbmcvfs

You're trying to run the script on a Dharma version of XBMC.. This testing version is only for pre-Eden versions. I haven't released a testing version for Dharma yet, still trying to kill some Windows vs Python 2.4 bugs(they just don't get along well) I'll try to have the Dharma version out by tomorrow night... I know it will be missing one feature that the pre-Eden version has(testing for existing low resolution cdARTs and Cover Art due to the Windows vs Python 2.4). It is tough to work on two versions at the same time(the main reason I haven't put it on the Official repo yet - I want to make sure it is stable)


- SamHill - 2011-06-26

giftie Wrote:You're trying to run the script on a Dharma version of XBMC.. This testing version is only for pre-Eden versions. I haven't released a testing version for Dharma yet, still trying to kill some Windows vs Python 2.4 bugs(they just don't get along well) I'll try to have the Dharma version out by tomorrow night... I know it will be missing one feature that the pre-Eden version has(testing for existing low resolution cdARTs and Cover Art due to the Windows vs Python 2.4). It is tough to work on two versions at the same time(the main reason I haven't put it on the Official repo yet - I want to make sure it is stable)

No problems. I appreciate the work. I will sit tight, just wanted to make sure I wasn't doing something wrong. Thanks.


- Kode - 2011-06-26

For some reason when I try to download a cdART for Trapt the script loses focus or something and doesn't download the cdART


13:01:39 T:2906647408 M:1898778624 DEBUG: [script.cdartmanager] - Score : 100
13:01:39 T:2906647408 M:1898778624 DEBUG: [script.cdartmanager] - Id : http://musicbrainz.org/artist/8876c0be-ccff-4d46-aa91-7f935a3b3b6b
13:01:39 T:2906647408 M:1898778624 DEBUG: [script.cdartmanager] - Name : u'Trapt'
13:01:39 T:2906647408 M:1898778624 DEBUG: [script.cdartmanager] - Sort Name : u'Trapt'
13:01:40 T:2906647408 M:1898790912 NOTICE: [script.cdartmanager] - # {'local_id': '49', 'musicbrainz_artistid': u'8876c0be-ccff-4d46-aa91-7f935a3b3b6b', 'name': 'Trapt', 'dis$
13:01:40 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - # Finding remote cdARTs
13:01:40 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - Retrieving artwork for artist id: 8876c0be-ccff-4d46-aa91-7f935a3b3b6b
13:01:40 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - Retrieving HTML Source
13:01:40 T:2906647408 M:1898790912 NOTICE: 8876c0be-ccff-4d46-aa91-7f935a3b3b6b.xml
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - HTML Source:
<?xml version="1.0"?>
<music id="8876c0be-ccff-4d46-aa91-7f935a3b3b6b" name="Trapt"><backgrounds><background>http://fanart.tv/music/8876c0be-ccff-4d46-aa$
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - Found FanART
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - Found ClearLOGOs
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - cover: http://fanart.tv/music/8876c0be-ccff-4d46-aa91-7f935a3b3b6b/albumcover/trapt-4dd2fe4b7c5af.jpg
13:01:41 T:2906647408 M:1898790912 NOTICE: [script.cdartmanager] - # Populating Album List
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - # Retrieving Local Albums Database
13:01:41 T:2906647408 M:1898790912 DEBUG: [script.cdartmanager] - # Finished Retrieving Local Albums Database
13:01:41 T:2906647408 M:1898790912 NOTICE: [script.cdartmanager] - # Building album list
13:01:41 T:6600512 M:1898790912 ERROR: Control 122 in window 13000 has been asked to focus, but it can't
13:01:42 T:6600512 M:1898790912 DEBUG: ------ Window Deinit (DialogBusy.xml) ------