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)



- m4x1m - 2011-08-04

giftie Wrote:Check your settings for the script and make sure that the option to 'Overwrite Low Res existing cdARTs' <- this checks the image size and if it is below the resolution of 1000x1000(the new dimensions) it will download cdART if it finds a match. This will still download a low-res one if that is all there is available.

Overwrite Low Res is active but would be best to skip if there is no high res image don't you think?

I hope to have translated well what you wrote Big Grin


- giftie - 2011-08-05

m4x1m Wrote:Overwrite Low Res is active but would be best to skip if there is no high res image don't you think?

I hope to have translated well what you wrote Big Grin

The problem is that the only way for the script to determine the Online image is to downloaded it.. Smile


- Kode - 2011-08-05

I could probably put the size in the xml output if that would help?


- m4x1m - 2011-08-05

giftie Wrote:The problem is that the only way for the script to determine the Online image is to downloaded it.. Smile

Ok I understand, but there is a way to skip the cdarts that exists from the number of downloaded counting and from the resulting list displayed at the end of the process?Wink


- Kode - 2011-08-05

giftie: I just installed 1.4.4 and now I can't open the addon, I get the following in the xbmc log.


17:08:23 T:2959076208 M:1897488384 DEBUG: Thread XBPyThread start, auto delete: 0
17:08:23 T:2959076208 M:1897488384 DEBUG: Python thread: start processing
17:08:23 T:2959076208 M:1897361408 NOTICE: -->Python Interpreter Initialized<--
17:08:23 T:2959076208 M:1897361408 DEBUG: Process - The source file to load is /home/kode/.xbmc/addons/script.cdartmanager/default.py
17:08:23 T:2959076208 M:1897361408 DEBUG: Process - Setting the Python path to /home/kode/.xbmc/addons/script.cdartmanager:/home/kode/.xbmc/addons/script.mod$
17:08:23 T:2959076208 M:1897361408 DEBUG: Process - Entering source directory /home/kode/.xbmc/addons/script.cdartmanager
17:08:23 T:2959076208 M:1897361408 DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.p$
17:08:23 T:2959076208 M:1897365504 INFO: -->Python script returned the following error<--
17:08:23 T:2959076208 M:1897365504 ERROR: Error Type: <type 'exceptions.ImportError'>
17:08:23 T:2959076208 M:1897365504 ERROR: Error Contents: cannot import name mkdir
17:08:23 T:2959076208 M:1897365504 ERROR: Traceback (most recent call last):
File "/home/kode/.xbmc/addons/script.cdartmanager/default.py", line 48, in <module>
from utils import empty_tempxml_folder
File "/home/kode/.xbmc/addons/script.cdartmanager/resources/lib/utils.py", line 33, in <module>
from xbmcvfs import mkdir
ImportError: cannot import name mkdir
17:08:23 T:2959076208 M:1897365504 INFO: -->End of Python script error report<--
17:08:23 T:2959076208 M:1897365504 INFO: Python script stopped
17:08:23 T:2959076208 M:1897365504 DEBUG: Thread Python Thread 2959076208 terminating


Any ideas?

*edit* I guess it could be my pre-eden version? For some reason I haven't been able to update it since XBMC PRE-11.0 GIT:20110603-6117253 (Compiled: Jun 5 2011)


- Kode - 2011-08-05

Yeah that fixed it, I managed to upgrade and it's working now, sorry.

Is it going to be possible at some point to add to the addon database rather than deleting it and recreating? Every time I add new artists it takes ages to recreate the database.


- ghostelement - 2011-08-06

Is it possible to download album art from fanart.tv with this script?


- spong_miester - 2011-08-06

Giftie, Is there any chance of a batch upload for CDArt i know there would it seems a shame that we have a program that can download all the art at once but, have to painstakingly upload artwork one by one.


- Kode - 2011-08-06

ghostelement Wrote:Is it possible to download album art from fanart.tv with this script?

Should be, it's one of the options.


- giftie - 2011-08-06

spong_miester Wrote:Giftie, Is there any chance of a batch upload for CDArt i know there would it seems a shame that we have a program that can download all the art at once but, have to painstakingly upload artwork one by one.

There is code in the script(I was messing around with an FTP earlier this year) but Kode and I decided against to have it built in. fanart.tv is quite easy to upload to(you can even upload multiple cdARTs, as long as the cdARTs are for the same artist.)

This may change, though mostly up to Kode @ fanart.tv


- giftie - 2011-08-06

ghostelement Wrote:Is it possible to download album art from fanart.tv with this script?

The Cover Art(second option) can be downloaded, both manual and automatic options are available.


- giftie - 2011-08-06

Kode Wrote:I could probably put the size in the xml output if that would help?

That would help Smile Forgot to ask you.. :S lol...


- giftie - 2011-08-06

Kode Wrote:Yeah that fixed it, I managed to upgrade and it's working now, sorry.

Is it going to be possible at some point to add to the addon database rather than deleting it and recreating? Every time I add new artists it takes ages to recreate the database.

I haven't yet figured out the whole process yet.. Also it would fix album paths, MBIDs as well(ie, similar to the 'Clean' that XBMC does.) The tough part is how XBMC handles the path. Most of this is already built into the script, just need to make the 'Update' function.

I'm hoping to work on that and the problem with Windows 7 Samba shares on Dharma(Live)


- Kode - 2011-08-06

giftie Wrote:There is code in the script(I was messing around with an FTP earlier this year) but Kode and I decided against to have it built in. fanart.tv is quite easy to upload to(you can even upload multiple cdARTs, as long as the cdARTs are for the same artist.)

This may change, though mostly up to Kode @ fanart.tv

The only real issue with this is we would have to create some kind of API key that users have to use, other wise there would be no way to attribute the uploads to the correct user.

Also it probably wouldn't be ftp access, because I'd have to create some kind of ftp staging area where users can upload using guest access (as anyone could just look at the scripts source and get the ftp details) which would be a real pain.

But it should be possible to post the file to the server, maybe using curl? A quick google brings up http://curl.haxx.se/libcurl/python/ but i'm not 100% sure.


- Kode - 2011-08-06

giftie Wrote:That would help Smile Forgot to ask you.. :S lol...

Done.

example output

[html]
<album id="74a05fd3-bf48-3caa-a584-d5d5eb525fb3">
<cdart disc="1" size="1000">
http://fanart.tv/music/084308bd-1654-436f-ba03-df6697104e19/cdart/shenanigans-4de3aed1ab6b9.png
</cdart>
<cover>
http://fanart.tv/music/084308bd-1654-436f-ba03-df6697104e19/albumcover/shenanigans-4e3b3cbfb9884.jpg
</cover>
</album>
[/html]