[RELEASE] cdART Manager Script

  Thread Rating:
  • 6 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #46
Download a install a new version of XBMC(above 31632 I think) it will have the missing files(script.module.pysqlite) that you need.


Nate Dogg III Wrote:Getting 'script failed' for this, here's a bit of my debug log:


Any ideas? Downloaded through the addons repo, running from the scripts menu, rev31504 for win7.
find quote
redje Offline
Member
Posts: 93
Joined: Jan 2009
Reputation: 0
Post: #47
Tomkun Wrote:Hello there.

I have to say, that I really love the CDart, but I have been less than disappointed by my own efforts at creating them.

I realised quite quickly that I was having trouble making everything line up, especially when I used scans from websites. Sometimes the perspective is wrong, there is a shadow or whatever.

So, I started cropping only the labels, and removing anything that had didn't have any design on it. At first I was very pleased with the results, but when I saw them in XBMC, they looked odd.The most glaring issue was that each CD had a different sized hole in the middle.

So, with the aid of Gimp, and a couple of plugins, I have found a way to rectify this issue.

First, I created a blank CD image 454x454 and tried my best to make it look shiny like a blank CD does.

Second, I placed the labels I had already created over it and merged the layers.

Finally, I resized back to 450x450. (The reason I made the image slighty larger in the first place is because most CDs have a border around the label).

Now, I am very pleased with the results, although I am sure someone can make a better background image than I.

I'd love to show you the results, but I can't figure out how to upload pics.

i've been thinking about the same thing. Just didn't have the time to look at it yet. In most skins, there's a default fallback image of a blank cd. Maybe you could use one of them?
find quote
z][ggy Offline
Senior Member
Posts: 208
Joined: May 2009
Reputation: 0
Post: #48
ok i'm lost installed this from *.zip in svn Dharma it's installed fine how does one set it up and run it to download cd-arts for my collection lol?
find quote
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #49
Just a couple of questions first...

What version of XBMC are you using? - needs to be above 32000
What Platform are you using? - Linux(32bit) Linux(64bit) OSX, Windows?

If you are using a Linux build(or Live build for that matter) you might be missing some 'builtin' modules, mainly script.module.pysqlite(I have copies of both the 2bit and 64bit versions if needed)

Since you have it installed, from the Settings->Addons->Enabled Addons->Program Add-ons, click on cdART Manager. Move over to Settings and select.

A breakdown of what you see:

cdART Backup Folder - this is a location that cdART Manager can copy cdART images to and from. There is the ability to copy single cdARTs or all your cdARTS from your music folders to this folder and then copy back to the music folders(not often needed) Using this backup feature, you are also able to place cdARTs that you create and quickly place them in the required folders - as long as they follow the naming conventions mentioned later.

Unique Local cdART Folder - This is the location that will store the cdARTs when you use the Copy Unique Local cdARTs option(under Advanced). This will put all your local cdARTs that don't happen to match any criteria on XBMCSTUFF.com - this makes it a little easier to upload them to XBMCSTUFF.com. There are a few limitations(though they might be fixed before the next release)

Backup Saving format - this is where you set your desired file naming convention. There are only two format: 1) Artist/Album.png 2) artist - album.png. These are use for the backup and the unique copy sequences. In the next release the script will be able to read back both and only save in the one you choose. ver. 0.9.8(the one on the repo) it will only copy back from the folders based on the format selected.

Once all this is complete the script should run. The first thing it will do is search you XBMC's MyMusic7.db(you music library) for Artist and Albums. Then it will search your music folders for cdARTs and make a list of what is already existing. You have a couple of options on how to get the cdARTs, Manual(Search Artists) or Automatic(Automatic Download) I would suggest if it is your first run, to do an Automatic Download, though it does take time(depending on your music library size) but it should be the easiest to get you cdART collection on its way. After that you can use the Search Artists feature and find the ones that Automatic Downloading missed(it happens sometimes...)


I hope this gets you going....
find quote
z][ggy Offline
Senior Member
Posts: 208
Joined: May 2009
Reputation: 0
Post: #50
i'm using the latest dharma svn so no worries there and vista 64

thanks so much i'll read through and follow your guide Smile
find quote
morfeus Offline
Member
Posts: 74
Joined: Aug 2009
Reputation: 1
Post: #51
I have the same problem as Nate. Just installed/enabled the cdART Manager script, on my Debian testing, with r32416 on top.

My log also shows:

Quote:15:12:00 T:2822761328 M:1544048640 INFO: -->Python script returned the following error<--
15:12:00 T:2822761328 M:1544048640 ERROR: Error Type: exceptions.ImportError
15:12:00 T:2822761328 M:1544048640 ERROR: Error Contents: No module named pysqlite2
15:12:00 T:2822761328 M:1544048640 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/script.cdartmanager/default.py", line 31, in ?
import gui
File "/home/xbmc/.xbmc/addons/script.cdartmanager/resources/lib/gui.py", line 25, in ?
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2
15:12:00 T:2822761328 M:1544048640 INFO: -->End of Python script error report<--

My r32416 comes with pysqlite module, but not pysqlite2?

XBMC 11.0 Eden (Ubuntu 12.04) - My i3 Build + guide/tips
Sony 46" HX723 - NAD T 744 AV. B&W DM602 S3....and the coolest air guitar in town!
find quote
iainmacleod Offline
Senior Member
Posts: 201
Joined: Feb 2006
Reputation: 0
Location: Pittsburgh area (Scotland previously)
Post: #52
giftie Wrote:Hooper818 - What version of XBMC are you using?

MacLeod_1980 - What version of XBMC are you using?

I have 1:10.08~svn32246-karmic1 installed.
find quote
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #53
Check inside the addons/script.module.pysqlite and see if there is any files.. If you are compiling your own from SVN you need to do the following during :

svn up(or git pull --whichever one you use)
./bootstrap
./configure
make
make -C lib/addons/script.module.pil
make -C lib/addons/script.module.pysqlite
make install

It has worked for others, it hasn't been put into the README.linux file for XBMC yet. Only the Windows version builds properly.

If you don't build your own from SVN or not going to compile one for a while:

Linux files - should be able to install via 'Install from Zip File'
64bit: http://www.mediafire.com/?14dbqsr3nnpyn70
32bit: http://www.mediafire.com/?gaz7zwntror21gr
(This post was last modified: 2010-08-09 03:23 by giftie.)
find quote
redje Offline
Member
Posts: 93
Joined: Jan 2009
Reputation: 0
Post: #54
i tried your new version today trying to export my cdarts. The export is a lot cleaner now thnx...great job. Only problem i have now is that resizing didn't work for me....
find quote
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #55
did you select the option in the settings menu?
find quote
redje Offline
Member
Posts: 93
Joined: Jan 2009
Reputation: 0
Post: #56
giftie Wrote:did you select the option in the settings menu?

yep...did try it 2 times and refreshed the local database inbetween the attempts
find quote
giftie Offline
Skilled Python Coder
Posts: 2,363
Joined: Mar 2010
Reputation: 54
Location: Calgary, Alberta
Post: #57
Could you post a copy of your xbmc.log(use a paste.bin since they tend to be large)

I just double checked both my windows test rig and my linux - both properly resized images... hmm... It only does it on a unique copy(single from local cdart and multiple from Unique cdART copy...)
find quote
redje Offline
Member
Posts: 93
Joined: Jan 2009
Reputation: 0
Post: #58
ok, here's my pastebin:

http://pastebin.com/4UbDVWr6
find quote
Jaco2k Offline
Senior Member
Posts: 112
Joined: Mar 2009
Reputation: 0
Post: #59
giftie Wrote:you need to do the following during :

svn up(or git pull --whichever one you use)
./bootstrap
./configure
make
make -C lib/addons/script.module.pil
make -C lib/addons/script.module.pysqlite
make install

Is there a trac for this already? This is most likely a ./config error and should be handled as such - not included in the README for the users to do it manually...
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #60
lies, it is included as of yesterday.
find quote
Post Reply