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 - 2010-12-07

To all those that are using this addon and those with MySQL, a new version is coming soon... It's going through some testing and to fix a few quirks that the addon has(non English characters, Database independant, artist search feature)

I am also slowly adding the most requested feature(though it will not be ready until I get the website up) Uploading and bulk downloading. - this should happen early in January(still have to build the site.)

Just wanted to keep everyone in the loop and to ensure people I haven't forgotten about the script..


- splnuts - 2010-12-08

I am trying to use this script but am having trouble. I am using Ubuntu 9.10 with Dharma RC1. When opening the script it just says "Script failed". I tried to uninstall and reinstall with similar issues.

I am running Dharma RC1 on Win7 and the script works fine.

Quote:21:55:29 T:2959403888 M:1691893760 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/script.cdartmanager/default.py", line 34, in ?
import gui
File "/home/xbmc/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 26, in ?
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2
21:55:29 T:2959403888 M:1691893760 INFO: -->End of Python script error report<--



- giftie - 2010-12-08

The error is coming from a missing module that is supposed to be built as Dharma is. Do you compile your own XBMC or install it through apt-get?

If you compile it on your own, you need to make sure you also compile the modules script.module.pysqlite and script.module.pil(see readme.ubuntu if you compile your own.)

If it's downloaded and installed from apt-get, you will need to make a ticket for the developers to correct(it's not a problem with the script.) make sure you include all your information(Ubuntu version, 32bit or 64bit, etc.)


splnuts Wrote:I am trying to use this script but am having trouble. I am using Ubuntu 9.10 with Dharma RC1. When opening the script it just says "Script failed". I tried to uninstall and reinstall with similar issues.

I am running Dharma RC1 on Win7 and the script works fine.



- splnuts - 2010-12-08

I compiled it on my own. Ill look at this when I get home. Thanks for the fast response.


- giftie - 2010-12-09

These are the steps I use when I compile. you will notice the placement of the two script.modules in between the make and the make install, this allows them to be copied to the correct place.

Code:
cd /root/setup/xbmc-work
rm ../logs/*-work.log
make distclean
./bootstrap >> ../logs/bootstrap-work.log
./configure --enable-libbluray --prefix=/usr --docdir=/usr/share/doc/xbmc --enable-debug --enable-gl --disable-gles --enable-vdpau --disable-vaapi --disable-vdadecoder --disable-openmax --disable-tegra --disable-profiling --enable-joystick --enable-xrandr --disable-ccache --enable-pulse --enable-rtmp --enable-ffmpeg-libvorbis --disable-mid --enable-hal --enable-avahi --disable-asap-codec --enable-webserver --disable-libdts --disable-liba52 >> ../logs/configure-work.log
make >> ../logs/make-work.log
make -C lib/addons/script.module.pil  >> ../logs/makepil-work.log
make -C lib/addons/script.module.pysqlite  >> ../logs/makepysqlite-work.log
sudo service xbmc-live stop
make install >> ../logs/make_install-work.log

I'm always happy to help, especially when I myself had this problem a while back.

Glad the script is functioning well for you...


- giftie - 2010-12-20

For those who don't know, the repo now has a new version - 1.2.5

This version handles MySQL Databases and handles non-English(and some English) characters better.


- tungmeister - 2010-12-28

I've got an issue with it in that it's hanging at retrieving music database - it just sits there for ages without making any progress, if I try to cancel it just says cancelling indefinitely. I've tried it on two different rigs with the same issues.

edit: here's the debug log output, it looks like the script is failing to connect to the database

Code:
14:14:00 T:2288 M:1363865600  NOTICE: # Setting up Script
14:14:00 T:2288 M:1363456000  NOTICE: #  Counting Local Artists, Albums and cdARTs
14:14:00 T:2288 M:1363456000  NOTICE: #
14:14:00 T:2288 M:1363451904    INFO: Loading skin file: DialogProgress.xml
14:14:00 T:2288 M:1363443712   DEBUG: ------ Window Init (DialogProgress.xml) ------
14:14:01 T:5172 M:1363415040   DEBUG: CRemoteControl::Connect - connecting to: ::1:24000 ...
14:14:02 T:5172 M:1363591168   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
14:14:03 T:5172 M:1363595264   ERROR: CRemoteControl::Connect - failed to connect
14:14:06 T:5260 M:1363660800    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://xoap.weather.com (easy=026525E8, multi=0264B048)
14:14:06 T:5172 M:1363738624   DEBUG: CRemoteControl::Connect - connecting to: ::1:24000 ...
14:14:07 T:5172 M:1363673088   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
14:14:08 T:5172 M:1363681280   ERROR: CRemoteControl::Connect - failed to connect
14:14:10 T:5260 M:1363685376   DEBUG: SDLKeyboard: scancode: 91, sym: 311, unicode: 0, modifier: 10
14:14:10 T:5260 M:1363681280   DEBUG: CApplication::OnKey: win-512 (10f200) pressed, action is
14:14:10 T:5260 M:1363681280   DEBUG: CWinEventsWin32::WndProcWindow is active
14:14:10 T:5260 M:1363681280   DEBUG: CWinEventsWin32::WndProcWindow lost focus
14:14:11 T:5172 M:1363648512   DEBUG: CRemoteControl::Connect - connecting to: ::1:24000 ...
14:14:12 T:5260 M:1363681280   DEBUG: CWinEventsWin32::WndProcWindow is active
14:14:12 T:5260 M:1363681280   DEBUG: CWinEventsWin32::WndProcWindow gained focus
14:14:12 T:4812 M:1363681280   DEBUG: Thread 4812 terminating (autodelete)
14:14:12 T:5172 M:1363759104   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
14:14:13 T:5172 M:1363787776   ERROR: CRemoteControl::Connect - failed to connect
14:14:14 T:2440 M:1363775488   DEBUG: Thread 2440 terminating (autodelete)
14:14:16 T:3032 M:1363922944   DEBUG: Thread 3032 terminating (autodelete)
14:14:16 T:5172 M:1364000768   DEBUG: CRemoteControl::Connect - connecting to: ::1:24000 ...
14:14:17 T:5260 M:1365704704    INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://localhost (easy=0265CD40, multi=02651F48)
14:14:17 T:5172 M:1365696512   DEBUG: CRemoteControl::Connect - connecting to: 127.0.0.1:24000 ...
14:14:18 T:5172 M:1365291008   ERROR: CRemoteControl::Connect - failed to connect



- giftie - 2010-12-28

[quote=tungmeister]I've got an issue with it in that it's hanging at retrieving music database - it just sits there for ages without making any progress, if I try to cancel it just says cancelling indefinitely. I've tried it on two different rigs with the same issues.

edit: here's the debug log output, it looks like the script is failing to connect to the database{/QUOTE]

can you post a complete debug log, there is important information missing from your post. (use pastebin.com, so much easier to read)

Can you also delete the userdata/addon_data/script.cdartmanager and try again.

I think the above may fix the problem.


- tungmeister - 2010-12-29

Deleting userdata/addon_data/script.cdartmanager solved the issue, I Thought I'd deleted all the addons settings before posting but I must have overlooked this. Thanks for the help.


- giftie - 2010-12-29

tungmeister Wrote:Deleting userdata/addon_data/script.cdartmanager solved the issue, I Thought I'd deleted all the addons settings before posting but I must have overlooked this. Thanks for the help.

probably was a database corruption. removing that folder gets rid of everything settings and db.

glad its working for you.


- avus m3 - 2010-12-29

I was having the same issue. Good to know.


- NebulaOdyssey - 2010-12-29

The CDart add-on says I have 75 artists, but I have more than this. So if I do a search for all artists I get a list upto and including some of R but nothing after except one that says various. But I have 'Vampire Weekend' and lots of 'The's' for example but noone of them show? Is this an issue with the addon?


- giftie - 2010-12-29

posting your xbmc.log file to pastebin.com. The script also searches by Album Artist not Artist(though XBMC does make the mistake sometimes when building the library)


- NebulaOdyssey - 2010-12-30

OK, just a note i'm using a fresh install of Dharma Live.

I did a database refresh on the addon and get to a screen where is gets stuck at 'Creating addon database'.

Log: pastebin


- giftie - 2010-12-30

NebulaOdyssey Wrote:OK, just a note i'm using a fresh install of Dharma Live.

I did a database refresh on the addon and get to a screen where is gets stuck at 'Creating addon database'.

Log: pastebin

Your link doesn't seem to work.