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-07-23

m4x1m Wrote:
Code:
15:54:07 T:2720119664 M:3962204160   ERROR: Error Type: <type 'exceptions.ImportError'>
15:54:07 T:2720119664 M:3962204160   ERROR: Error Contents: cannot import name mkdir
15:54:07 T:2720119664 M:3962204160   ERROR: Traceback (most recent call last):
                                              File "/home/m4x1m/.xbmc/addons/script.cdartmanager/default.py", line 42, in <module>
                                                from utils import empty_tempxml_folder
                                              File "/home/m4x1m/.xbmc/addons/script.cdartmanager/resources/lib/utils.py", line 32, in <module>
                                                from xbmcvfs import mkdir
                                            ImportError: cannot import name mkdir
15:54:07 T:2720119664 M:3962204160    INFO: -->End of Python script error report<--

Latest xbmc-pvr and script.cdartmanager 1.4.1
Maybe I missed something? Nerd

It just means that xbmc-pvr is not new enough to run 1.4.1(it's missing a commit) you just need to go back to 1.4.0.


- splnuts - 2011-07-24

http://pastebin.com/fWrhsnV1

I have been getting an error trying to run this script for awhile so I updated today and this is what I get. I am running openelec rc5. Thanks.

Code:
22:42:57 T:140411366094592 M:1639665664  NOTICE: [script.cdartmanager] - Database matched
22:42:57 T:140411366094592 M:1639665664   ERROR: Error Type: <type 'exceptions.ImportError'>
22:42:57 T:140411366094592 M:1639665664   ERROR: Error Contents: No module named PIL
22:42:57 T:140411366094592 M:1639665664   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.cdartmanager/default.py", line 132, in <module>
                                                import gui
                                              File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 25, in <module>
                                                from PIL import Image
                                            ImportError: No module named PIL



- giftie - 2011-07-24

splnuts Wrote:http://pastebin.com/fWrhsnV1

I have been getting an error trying to run this script for awhile so I updated today and this is what I get. I am running openelec rc5. Thanks.

Code:
22:42:57 T:140411366094592 M:1639665664  NOTICE: [script.cdartmanager] - Database matched
22:42:57 T:140411366094592 M:1639665664   ERROR: Error Type: <type 'exceptions.ImportError'>
22:42:57 T:140411366094592 M:1639665664   ERROR: Error Contents: No module named PIL
22:42:57 T:140411366094592 M:1639665664   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.cdartmanager/default.py", line 132, in <module>
                                                import gui
                                              File "/storage/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 25, in <module>
                                                from PIL import Image
                                            ImportError: No module named PIL

Looks like OpenElec is not being built with the script.module.pil module. I just checked the source code for OpenElec, it seems like sraue is building the PIL module in to the python internally in the build of OpenElec. I think it may not me available though... You might need to post something on OpenElec's site regarding this.

Found this on their forum - http://www.openelec.tv/forum/37-solved-feature-suggestions/5496-solved-add-pil-python-image-library


- splnuts - 2011-07-29

http://pastebin.com/6rvJE8Sp

I updated to a new version of openelec and the addon opens and when I build the database it recognizes 1800 albums and scans through all of them. But when done it says there are no local artist/albums.


- giftie - 2011-07-29

splnuts Wrote:http://pastebin.com/6rvJE8Sp

I updated to a new version of openelec and the addon opens and when I build the database it recognizes 1800 albums and scans through all of them. But when done it says there are no local artist/albums.

Can't see anything... XBMC needs to be set to Debug mode, also disable script.tv.show.next.aired as it spamming the Log file with errors.

Please try it again in debug mode..


- splnuts - 2011-07-29

http://dl.dropbox.com/u/2892583/script.xbmc.debug.log_00_07_57.log

I think its too big for pastebin @ 18mb.


- jasonlcox - 2011-07-29

hi giftie, any progress with the extrafanart folder creation problem?


- Martijn - 2011-07-29

have some problems with the folder creation.
my files are on
Code:
smb://machine-sanctum/media1/muziek bestanden/album/[artists]/[albums]

I thought there was a problem with how the files where added to the library.
First i had:
Code:
smb://machine-sanctum/media1/muziek bestanden/

I emptied my library and added
Code:
smb://machine-sanctum/media1/muziek bestanden/album/
to the music library but when downloading artist fanart (logo.png) it puts it in
Code:
smb://machine-sanctum/media1/muziek bestanden/[artists]/

instead of
Code:
smb://machine-sanctum/media1/muziek bestanden/album/[artists]/



- giftie - 2011-07-30

Machine-Sanctum Wrote:have some problems with the folder creation.
my files are on
Code:
smb://machine-sanctum/media1/muziek bestanden/album/[artists]/[albums]

I thought there was a problem with how the files where added to the library.
First i had:
Code:
smb://machine-sanctum/media1/muziek bestanden/

I emptied my library and added
Code:
smb://machine-sanctum/media1/muziek bestanden/album/
to the music library but when downloading artist fanart (logo.png) it puts it in
Code:
smb://machine-sanctum/media1/muziek bestanden/[artists]/

instead of
Code:
smb://machine-sanctum/media1/muziek bestanden/album/[artists]/

What do you have set for "Path to Music Library" in settings?


- giftie - 2011-07-30

jasonlcox Wrote:hi giftie, any progress with the extrafanart folder creation problem?

Haven't been able to work on it too much the past week.. I'm installing a copy of Dhrama(linux style) on a usb memory stick to test locally. Hope to have it fixed in the next day.


- Martijn - 2011-07-30

giftie Wrote:What do you have set for "Path to Music Library" in settings?

Sorry, just noticed it was messed up. Change it and it ok now. Somehow folder wasn't stup wright anymore but i didn't change it


- giftie - 2011-07-30

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

I think its too big for pastebin @ 18mb.

It's reporting that it can not match the path given by XBMC(I know it doesn't show that Smile ) I just downloaded OpenElec and tested for my self, and it seems that the VFS(samba) is not completely wrapped for python in OpenElec(I know it is a custom build of Dharma 10.1) I think this is the problem. This part of the script works fine on XBMC Live 10.1, so there is not a problem directly with the script(I beleive) The easiest work around is to mount your music share so it appears as a local drive instead of a smb:// drive(as smb:// is not a real path but part of the VFS - Virtual File System that XBMC provides.)

If you were to upgrade to the pre-Eden version of OpenElec then the pre-Eden version of the script should work fine(as there is now a new module for Pyhton scripts -> xbmcvfs for access of the VFS.


- jasonlcox - 2011-07-30

giftie Wrote:Haven't been able to work on it too much the past week.. I'm installing a copy of Dhrama(linux style) on a usb memory stick to test locally. Hope to have it fixed in the next day.

Thanks giftie, I appreciate all your hard work on this. Let me know if you need any more logs.


- splnuts - 2011-07-30

Thanks man. Ill play around and hopefully get it working shortly.


- giftie - 2011-07-31


Latest Development Versions:

pre-Eden - http://www.mediafire.com/file/h4hwmc9damqx41x/script.cdartmanager.1.4.3.zip
Dharma - http://www.mediafire.com/file/bj9l44k1behsxbm/script.cdartmanager.dharma.1.4.3.zip


The majority of fixes went into the Dharma Version - which should now properly make the required directories on a Linux(Live) version of XBMC(10.1) It has been tested on a protected and non-protected share using XBMC-Live 10.1.

Windows and other OSes behave slightly different when it comes to Addons, Windows seems to allow multiple instances of addons to run when started from the Programs(Addons) window, where Linux seems to end the one(ungracefully I might add) when the addon is tried to start again. So I added a 'lock-out' on the Windows systems that if you start the background database building, it will not let you start the script(gracefully notifying you that this had happened) Linux systems(Dharma and pre-Eden) XBMC will stop the first instance and bail out on the second(user not aware) a second selection of the addon is needed to start the script(though since it bailed out on the background DB building, it will start building the DB)

I also Added Notification of completetion of the DB in background(can be turned off in settings) Also you can turn on Album Notification(if you want, but can be quite annoying)

Always check your settings as things sometime get added(or removed)

Hopefully this will be the last 'test' version and it can be added to the repo..