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)



- Kode - 2011-11-01

actually the fanart can be named anything, they just need to be in a folder called extrafanart in the artists root


- grumpygamer - 2011-11-01

giftie Wrote:Even though you added the music source as a Source in the music section, you will still need to add it as a Source to the file system. To do this you need to open the File Manager(available from the drop down menu on the settings tab on the home page). Then scroll to the add source. After doing this it should be available to the script.

Thanks!
Unfortunately though this is still not working for me...
once I added the source successfully I went and "Built database", and the process started.
But nothing appears on anym menu:
cdarts >> Search artists = blank box
and so on for every other menu item.

I tried "Automatic Download" but that gave me a 0 - 0 popup response.
Something smells fishy... am I still doing something wrong?

Also once every twice the system restarts upon launching the app

No error is thrown, just it dont seem to find anything
Quote:09:18:48 T:139831464195840 M:1636265984 NOTICE: [script.cdartmanager] - Populating Artist List
09:19:31 T:139831464195840 M:1636159488 NOTICE: [script.cdartmanager] - Storing Counts
09:19:31 T:139831464195840 M:1636159488 NOTICE: [script.cdartmanager] - Album Count: 0
09:19:31 T:139831464195840 M:1636159488 NOTICE: [script.cdartmanager] - Artist Count: 0
09:19:31 T:139831464195840 M:1636159488 NOTICE: [script.cdartmanager] - cdARTs Existing Count: 0
09:19:31 T:139831464195840 M:1636032512 NOTICE: [script.cdartmanager] - Refreshing Counts
09:19:31 T:139831464195840 M:1636032512 NOTICE: [script.cdartmanager] - Saving Missing cdART list to backup folder


- gg


- Kode - 2011-11-01

A full log would be helpful


- Lady Baerbel - 2011-11-01

grumpygamer Wrote:Thanks!
Unfortunately though this is still not working for me...
once I added the source successfully I went and "Built database", and the process started.
But nothing appears on anym menu:
cdarts >> Search artists = blank box
and so on for every other menu item.

I tried "Automatic Download" but that gave me a 0 - 0 popup response.
Something smells fishy... am I still doing something wrong?

Also once every twice the system restarts upon launching the app

No error is thrown, just it dont seem to find anything



- gg

I have the same problem. cdarts >> Search artists = blank box

and.....

Sytem: Win 7 SP1
Pre Eden from 30.10.11
Aeon MQ3 from 31.10.11 1.0.0
CDart 2.5.1

First: cdart manager window crashed (i open it the first time after the update to MQ3 1.0.0))

Second: restart the pc. after that my xbmc music database was gone. so i create a new one. CD Art Manager crashed again. now i have deactivate cdart and reactivate it. I started the cdart manager again.
Now i can see a window "creat a database" but for 20 Albums it take 30 Minutes so its very very slow.

now i have deinstall cdart start xbmc again an istall cdart again.
start cdart manager again, window comes up "create database" and now it takes 2 minutes to find 41 Albums.

maybe it can help......

Wenn ich das ganze auf Deutsch erzählen soll bitte melden das kann ich besser Big Grin


- Siutsch - 2011-11-01

giftie Wrote:cdART - cdart.png
cover Art - folder.jpg
Fanart - fanart.jpg
ClearLogo - logo.png

The script uses XBMC's music library and expects the order of the music to be stored in a specific method:

\Artist\Album\tracks.mp3(flac, wav, m4a, etc..)

The script and fanart.tv also uses MusicBrainz to provide the best accuracy. Using MusicBrainz Picard is very good idea for cleaning up your music(proper tags)

I also use \Artist\Artist - Album\tracks.mp3 and \Artist\(YYYY) Album\tracks.mp3 and \Artist\Album (YYYY)\tracks.mp3
and \Artist\Artist - Album (YYYY)\tracks.mp3 or something like this.

Will this work too?

Sorting >50000 MP3s and correcting the ID tags is nearly impossible for me.

Do you think you can modify your script sometime to also scan the music using only directory and file names? Rolleyes

Siutsch.


- giftie - 2011-11-01

Adding folder search is not planned for this script. Main reason is XBMC does an excellent job organizing the music library(why re-invent the wheel?) I have finished such an update to my music library(about the same number of tracks).

You format should work fine for cdARTs and cover arts, since the script actually uses the song path to create the cdART path, very much the same way skins build the path for displaying cdARTs. These paths should also work for fanart and logos since they require the artists path.

Siutsch Wrote:I also use \Artist\Artist - Album\tracks.mp3 and \Artist\(YYYY) Album\tracks.mp3 and \Artist\Album (YYYY)\tracks.mp3
and \Artist\Artist - Album (YYYY)\tracks.mp3 or something like this.

Will this work too?

Sorting >50000 MP3s and correcting the ID tags is nearly impossible for me.

Do you think you can modify your script sometime to also scan the music using only directory and file names? Rolleyes

Siutsch.



- giftie - 2011-11-02

For those having problem please post a full debug log(see my signature for instructions). It is the only way I can see what it is or not doing.


Hangs when trying to create a database - Tommy2012 - 2011-11-02

Hi Giftie. Hope you are well. Please see below log for a problem i have. It just hangs trying to create a database. Hope you can assist Big Grin

12:18:31 T:3588 NOTICE: [script.cdartmanager] - ############################################################
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # cdART Manager #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # gui.py module #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # script.cdartmanager #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # Giftie #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # 1.4.9 #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # Ppic, Reaven, Imaginos, redje, Jair, #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # Chaos_666, Magnatism, Kode #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # Thanks for the help... #
12:18:31 T:3588 NOTICE: [script.cdartmanager] - ############################################################
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Settings #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Backup Folder: #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Unique Folder: #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Resize Enabled: false #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Saving format: 0 #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Enable Custom Colours: false #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - ############################################################
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Custom Colours #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Recognized: green #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Unrecognized: white #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Remote: green #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Local: orange #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Local & Remote Match: yellow #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Unmatched: white #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Local cdART: orange #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # #
12:18:31 T:3588 DEBUG: [script.cdartmanager] - ############################################################
12:18:31 T:3588 NOTICE: [script.cdartmanager] - # Setting up Script
12:18:31 T:3588 NOTICE: [script.cdartmanager] - Addon Db Not Found - Building New Addon Db
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Setting Up Database
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # addon_work_path: C:\Users\ZTEWH\AppData\Roaming\XBMC\userdata\addon_data\script.cdartmanager\
12:18:31 T:3588 DEBUG: [script.cdartmanager] - # Retrieving Album Info from XBMC's Music DB
12:18:31 T:3588 INFO: Loading skin file: DialogProgress.xml
12:18:31 T:3588 DEBUG: DialogProgress::StartModal called
12:18:31 T:3588 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:18:31 T:3588 DEBUG: [script.cdartmanager] - pre_eden_code - Retrieving Album List
12:18:31 T:3588 DEBUG: [json_utils.py] - JSONRPC Query -
{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": {"fields": ["title", "artist"] }, "id": 1}
12:18:31 T:3588 DEBUG: [json_utils.py] - retrieve_json_dict - JSONRPC -
{"error":{"code":-32602,"data":{"message":"Too many parameters","method":"AudioLibrary.GetAlbums"},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
12:18:31 T:3588 ERROR: Traceback (most recent call last):
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\json_utils.py", line 27, in retrieve_json_dict
12:18:31 T:3588 ERROR: result = response['result']
12:18:31 T:3588 ERROR: KeyError: 'result'
12:18:31 T:3588 DEBUG: [json_utils.py] - retrieve_json_dict - Error trying to get json response
12:18:31 T:3588 ERROR: Traceback (most recent call last):
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\gui.py", line 148, in onInit
12:18:31 T:3588 ERROR: self.setup_all()
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\gui.py", line 1032, in setup_all
12:18:31 T:3588 ERROR: local_album_count, local_artist_count, local_cdart_count = new_database_setup( self.background )
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\database.py", line 307, in new_database_setup
12:18:31 T:3588 ERROR: local_album_list = get_xbmc_database_info( background )
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\database.py", line 60, in get_xbmc_database_info
12:18:31 T:3588 ERROR: album_list, total = retrieve_album_list()
12:18:31 T:3588 ERROR: File "C:\Users\ZTEWH\AppData\Roaming\XBMC\addons\Machine-Sanctum-script.cdartmanager-ed6ff5a\resources\lib\pre_eden_code.py", line 19, in retrieve_album_list
12:18:31 T:3588 ERROR: return json_albums, len(json_albums)
12:18:31 T:3588 ERROR: TypeError: object of type 'NoneType' has no len()
12:18:33 T:5772 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://xbmc-advanced-launcher.googlecode.com (easy=00917FE8, multi=00920750)
12:18:34 T:5164 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
12:18:34 T:5164 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
12:18:34 T:5164 ERROR: XFILE::CFileCache::Open - failed to open source <http://mirrors.xbmc.org/addons/eden-pre/addons.xml|Encoding=gzip>
12:18:34 T:5164 ERROR: Repository XBMC.org Add-ons returned no add-ons, listing may have failed
12:18:34 T:5164 DEBUG: CFileCache::Open - opening <svn/trunk/addons.xml.md5> using cache
12:18:34 T:5164 DEBUG: FileCurl::Open(0AD2CBD8) http://bluecop-xbmc-repo.googlecode.com/svn/trunk/addons.xml.md5
12:18:34 T:5164 INFO: XCURL:Big GrinllLibCurlGlobal::easy_aquire - Created session to http://bluecop-xbmc-repo.googlecode.com
12:18:43 T:5772 DEBUG: ------ Window Init (Pointer.xml) ------
12:18:43 T:5772 ERROR: Control 1 in window 10099 has been asked to focus, but it can't
12:18:44 T:5164 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
12:18:44 T:5164 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
12:18:44 T:5164 ERROR: XFILE::CFileCache::Open - failed to open source <http://bluecop-xbmc-repo.googlecode.com/svn/trunk/addons.xml.md5>
12:18:44 T:5164 DEBUG: CFileCache::Open - opening <svn/trunk/addons.xml> using cache
12:18:44 T:5164 DEBUG: FileCurl::Open(0AD2CBD8) http://bluecop-xbmc-repo.googlecode.com/svn/trunk/addons.xml
12:18:44 T:5772 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://dandar3-xbmc-addons.googlecode.com (easy=0095D390, multi=00917C68)
12:18:45 T:5772 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Program Files\XBMC\XBMC.exe
12:18:45 T:5772 DEBUG: CWinEventsWin32::WndProcWindow is inactive
12:18:54 T:5164 DEBUG: Previous line repeats 2 times.
12:18:54 T:5164 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
12:18:54 T:5164 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
12:18:54 T:5164 ERROR: XFILE::CFileCache::Open - failed to open source <http://bluecop-xbmc-repo.googlecode.com/svn/trunk/addons.xml>
12:18:54 T:5164 ERROR: Repository bluecop Add-on Repository returned no add-ons, listing may have failed
12:18:54 T:5164 DEBUG: CFileCache::Open - opening <svn/trunk/addons.xml.md5> using cache
12:18:54 T:5164 DEBUG: FileCurl::Open(0AD2CBD8) http://xbmc-repo-hitchers.googlecode.com/svn/trunk/addons.xml.md5
12:18:54 T:5164 INFO: XCURL:Big GrinllLibCurlGlobal::easy_aquire - Created session to http://xbmc-repo-hitchers.googlecode.com
12:19:00 T:6000 DEBUG: Thread Jobworker 6000 terminating (autodelete)
12:19:00 T:2296 DEBUG: Thread Jobworker 2296 terminating (autodelete)
12:19:00 T:656 DEBUG: Thread Jobworker 656 terminating (autodelete)
12:19:02 T:5772 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib.dll)


- giftie - 2011-11-02

You are using an old version of the script and a newish version of XBMC pre-Eden(newer than Sept 20). Updating to version 2.5.1 from the official repo should fix the problem.

Also, when posting a debug log, please post a complete debug log to pastebin or some other online storage(drop box would even do for the large files). This provides much needed information(XBMC version for one)


- grumpygamer - 2011-11-02

Hey giftie,
heres my normal debug log (not activated in xbmc)
http://pastebin.com/qHsgNv0K
and here's the activated debug log
program crashed and I did some stuff in order to fill the log up Smile
this log is on mediafire (it was 6.8mb!!)
hope this helps (especially me) Big Grin

http://www.mediafire.com/?c1nsjupstbks8l8

Thanks
-gg


- giftie - 2011-11-02

You will need to rebuild the local database(the one for the script). Make sure you have XBMC in debug mode since this is where your problem is.


- grumpygamer - 2011-11-02

Not sure I understand what you mean, should I delete all the music database and rebuild it?
This was a clean install... just did it during the last weekend.
-gg


- giftie - 2011-11-03

You just need to run the script, select Advanced, then select Refreash Adding Database.

For some reason the script is not getting any information from XBMC


- grumpygamer - 2011-11-03

I had done that WHILE it was in debug mode already.
Ok I'll redo it: http://www.mediafire.com/?qqf70btwagautdx
- gg


- giftie - 2011-11-04

I see from the log that the script can not verify that the path to the album exists. I also see that you are using a Dharma version of OpenElec, which also is using python 2.6(not the normal 2.4 version). Since this script works fine with a non OpenElec version of Dharma. I think there may be a be a problem with using a virtual file system path(smb) and the python used in OpenElec. I have a feeling that they may have built a module for vfs for OpenElec. If so, I will see about updating for OpenElec on the Dharma version(three versions to maintain).