Kodi Community Forum

Full Version: [RELEASE] cdART Manager Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Kode Wrote:Done.

example output

[html]
<album id="74a05fd3-bf48-3caa-a584-d5d5eb525fb3">
<cdart disc="1" size="1000">
http://fanart.tv/music/084308bd-1654-436...1ab6b9.png
</cdart>
<cover>
http://fanart.tv/music/084308bd-1654-436...fb9884.jpg
</cover>
</album>
[/html]

Thanks Kode... I'll have the change up in the next hour or so, since this breaks the script for matching cdARTs.

Latest Development Versions:

pre-Eden - http://www.mediafire.com/file/fyycqc52h6....1.4.5.zip
Dharma - http://www.mediafire.com/file/ee82veebhh....1.4.5.zip

This update is for the changes made on fanart.tv regarding size of cdART image
jasonlcox Wrote:giftie, I've been having problems with 1.4.3 and 1.4.4 too.

Unfortunately, neither have solved the extrafanart creation problem for me, and now XBMC is freezing after I try the fanart autodownload (it didn't freeze with previous versions of cdART Manager).

The only time it doesn't freeze is if I uninstall cdART Manager, delete all its related folders, reinstall it, allow it to build a database, then immediately run the autodownload. It finishes with a download error, and zero files downloaded (same as before). I have a log for this, but it's about 10MB, too big for pastebin.

If I reboot after the building the database (to give you a less cluttered log), and attempt to autodownload it starts but the progress bar doesn't move. When I select cancel it says "cancelling", but XBMC becomes unresponsive and I have to reboot. The xbmc.old.log for this is about 28MB!

Would you like to see the logs? How can I get them to you?

Is it possible the problem is with my Windows 7 system? I've checked my sharing settings - password protected sharing is off, and my music folder is set to share with Everyone, with full control permissions. Is there something else I should check?

I initially tested the script out on my NAS system(ie non Windows 7) and it worked flawlessly. So after getting this message I setup a share on my Windows 7 box. I set it as a share for everyone and then tested with the script, getting the same problem as you do. I did a little more checking and found Windows 7 may still password protect the share(talk about over protective Smile ) I found a setting in -> Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings under the heading 'Password Protect Sharing'. Turning this setting off allowed the script to create the directories.
I had password protected sharing turned off, but just to be sure I tried turning it on then turning it off again. I'm still getting the same problem though - I run the autodownload, it takes ages but ends with an error and zero files downloaded, and xbmc becomes unresponsive (so I have to reboot). I also noticed that even when I have manually created an extrafanart folder, the fanart isn't downloaded - I'm it used to work before.

I'm also finding that 90% of the time the autodownload option causes xbmc to hang as soon as I run it. It takes several attempts and reboots to get it to do a complete run. Very frustrating.

Am I the only Win 7 user having this trouble? Maybe there's a problem with my Win 7 installation. Is your system set up with a Homegroup? I might try removing mine from the Homegroup, setting up the shares again, and trying that. Will let you know how it goes.
Leaving the Homegroup didn't help. Tried the autodownload again a couple of times, but xbmc froze on the first artist every time.

I'm going to reinstall Windows in the next couple of weeks, I'll see if that solves the problem.

Sorry to be bothering you with this giftie, you've been very patient.
jasonlcox Wrote:Leaving the Homegroup didn't help. Tried the autodownload again a couple of times, but xbmc froze on the first artist every time.

I'm going to reinstall Windows in the next couple of weeks, I'll see if that solves the problem.

Sorry to be bothering you with this giftie, you've been very patient.

You're not bothering me. You're also probably not the only one who is having this problem, you're the only one willing to share... Smile

Windows 7 has been a thorn in my side.. Smile lol..

There is a few things you can try for me though..

From the shell of your XBMC-Live box(either from the terminal(CTRL-ALT F1) or through SSH) I need you to enter the following command:

Code:
smbclient //SMEG/Music for streaming -k

This should log you into the share(the same way the script tries to)
you probably will receive a line similar to this:
Code:
Domain=[SMEG] OS=[Windows 7 Home Premium 7601 Service Pack 1] Server=[Windows 7 Home Premium 6.1]
smb: \>

Then try:

Code:
ls

this should list the directory of //SMEG/Music for streaming

if this does not provide the directory listing, it would throw an error.

If the directory listing is provided. Try the next command:

Code:
cd 30 Seconds to Mars
Code:
mkdir extrafanart

This should make the directory 'extrafanart' in the directory '30 Seconds to Mars'

If this all works I am at a loss with why the script will not create the folders for you, as these are the manual steps that the script takes...

If not, maybe the errors will help me(and you) out...

Also to exit out of 'smbclient' just type 'exit' at the prompt
Thanks giftie.

I tried entering this command:

smbclient //SMEG/Music for streaming -k

but got this error:

-bash: smbclient: command not found

I tried SSH using Putty from my Win 7 system, and then directly through terminal - got the same error both times.
jasonlcox Wrote:Thanks giftie.

I tried entering this command:

smbclient //SMEG/Music for streaming -k

but got this error:

-bash: smbclient: command not found

I tried SSH using Putty from my Win 7 system, and then directly through terminal - got the same error both times.

That's really strange... It should have been part of XBMC-Live install(it is on my USB stick..)

then from the command line, do the following...

Code:
apt-get install smbclient

and install all packages.

After this, try the commands I gave earlier and cross some fingers... Smile
Tried installing smbclient, and this was the result:

root@XBMCLive:~# apt-get install smbclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
samba-common samba-common-bin
Suggested packages:
smbfs
The following NEW packages will be installed:
samba-common samba-common-bin smbclient
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.7MB of archives.
After this operation, 48.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://security.ubuntu.com/ubuntu/ lucid-updates/main samba-common 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common-bin 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main smbclient 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma....4_all.deb 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma...4_i386.deb 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma...4_i386.deb 404 Not Found [IP: 91.189.88.31 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
jasonlcox Wrote:Tried installing smbclient, and this was the result:

root@XBMCLive:~# apt-get install smbclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
samba-common samba-common-bin
Suggested packages:
smbfs
The following NEW packages will be installed:
samba-common samba-common-bin smbclient
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.7MB of archives.
After this operation, 48.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://security.ubuntu.com/ubuntu/ lucid-updates/main samba-common 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common-bin 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main smbclient 2:3.4.7~dfsg-1ubuntu3.4
404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma....4_all.deb 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma...4_i386.deb 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/ma...4_i386.deb 404 Not Found [IP: 91.189.88.31 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

did you try 'apt-get update' then 'apt-get install smbclient' again?
Perhaps I should have mentioned this earlier, but once or twice XBMC failed to reboot after hanging during the autodownload. There was a message "Press F to fix", which I did, and it then rebooted successfully. Is this related to the smbclient problem? Do you think I should reinstall Live?
giftie Wrote:did you try 'apt-get update' then 'apt-get install smbclient' again?

No, trying now.
Got smbclient installed.

Tried the first command again:

root@XBMCLive:~# smbclient //SMEG/Music for streaming -k
Domain=[SMEG] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
jasonlcox Wrote:Got smbclient installed.

Tried the first command again:

root@XBMCLive:~# smbclient //SMEG/Music for streaming -k
Domain=[SMEG] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

Ok. At least we are getting somewhere... Smile Now on your Windows box, open up Windows Explore, click on the Networks tab and then your computer(SMEG) this should show all your shared folders. Select your 'Music for streaming' share
then click on the address bar at the top. This should look exactly like the 'smbclient //SMEG/Music for streaming -k'. If it is different(even capital letters are important) try what is displayed in the address bar of Windows Explorer.
it looks like this:

\\SMEG\Music for streaming

other than the direction of the slashes it's the same