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.
(2015-09-10, 20:00)Powerhouse Wrote: [ -> ]Ok, so the original cdART Manager no longer works, but the updated one from stef.an does (I'm on Kodi 15.1, and see his repository lists it as Helix+ compatible)?

Also, if I scrap all my music with MusicBrianz Picard. Then Run all the Music files through MediaElch (to grab all the Fanart, Album Art, Artist.nfo, Banners, etc), is there a point to still using cdART Manager? Does cdART Manager do something that MediaElch misses?

Not familiar with MediaElch, does it download CD artwork (cdart.png) files? If not then there's one thing that cdART Manager does that you'll want to retain it for. cdART Manager has been around for quite a long time, so a lot of skins are already set up to make use of it if it's installed. To take advantage of that integration with another program / utility, said program has to create filenames / paths with exactly the same structure as cdART Manager would do, otherwise your going to need to rename a lot of files or manually point your selected skin to resources you have downloaded.

Most of the 3rd party media managers I've seen/used tend to bias Movies and TV. Music is a bit of a poor relation in comparison. I guess this is 'most' people's main area of focus for their media center.
Hello,

Unfortunately, I have the following error with the stef.an version. Any idea about what to do ?

Code:
16:19:47 T:1519383616  NOTICE: -->Python Interpreter Initialized<--
16:19:48 T:1519383616  NOTICE: [cdART Manager] - ############################################################
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    cdART Manager                                         #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #        default.py module                                 #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    script.cdartmanager                                   #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    Giftie                                                #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    4.0.5                                                 #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    Chaos_666, Magnatism, Kode, Martijn                   #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    Thanks for the help guys...                           #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - #    Helix                                                 #
16:19:48 T:1519383616  NOTICE: [cdART Manager] - ############################################################
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Looking for settings.xml
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Addon Work Folder: /storage/.kodi/userdata/addon_data/script.cdartmanager/
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Addon Database: /storage/.kodi/userdata/addon_data/script.cdartmanager/l_cdart.db
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Addon settings: /storage/.kodi/userdata/addon_data/script.cdartmanager/settings.xml
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Addon Work Folder Found, Checking For Database
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Addon Db Found, Checking Database Version
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Looking for database version: 3.0.3
16:19:48 T:1519383616   ERROR: Traceback (most recent call last):
16:19:48 T:1519383616   ERROR:   File "/storage/.kodi/addons/script.cdartmanager-Helix/default.py", line 483, in <module>
16:19:48 T:1519383616   ERROR:     c.execute(query)
16:19:48 T:1519383616   ERROR: OperationalError: no such table: counts
16:19:48 T:1519383616  NOTICE: [cdART Manager] - # Error: OperationalError
16:19:48 T:1519383616  NOTICE: [cdART Manager] - Trying To Delete Database
16:19:52 T:1519383616  NOTICE: [cdART Manager] - # Setting up Script
16:19:52 T:1519383616  NOTICE: [cdART Manager] - Addon Db Not Found - Building New Addon Db
16:19:52 T:1519383616   ERROR: Traceback (most recent call last):
16:19:52 T:1519383616   ERROR:   File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/json_utils.py", line 28, in retrieve_json_dict
16:19:52 T:1519383616   ERROR:     json_dict = result[items]
16:19:52 T:1519383616   ERROR: KeyError: 'albums'
16:19:52 T:1519383616  NOTICE: [json_utils.py] - retrieve_json_dict - JSONRPC -
                                            {'jsonrpc': '2.0', 'id': 1, 'result': {'limits': {'start': 0, 'total': 0, 'end': 0}}}
16:19:52 T:1519383616  NOTICE: [json_utils.py] - retrieve_json_dict - Error trying to get json response
16:19:52 T:1519383616   ERROR: Traceback (most recent call last):
16:19:52 T:1519383616   ERROR:   File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/database.py", line 620, in get_local_artists_db
16:19:52 T:1519383616   ERROR:     c.execute(query)
16:19:52 T:1519383616   ERROR: OperationalError: no such table: lalist
16:19:52 T:1519383616   ERROR: Traceback (most recent call last):
16:19:52 T:1519383616   ERROR:   File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/database.py", line 620, in get_local_artists_db
16:19:52 T:1519383616   ERROR:     c.execute(query)
16:19:52 T:1519383616   ERROR: OperationalError: no such table: lalist
16:19:52 T:1519383616  NOTICE: [cdART Manager] - Checking for artist match with fanart.tv - First Check
16:19:52 T:1519383616   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: no such table: counts
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/gui.py", line 71, in onInit
                                                self.setup_all()
                                              File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/gui.py", line 1048, in setup_all
                                                first_check( all_artists, local_artists )
                                              File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/fanarttv_scraper.py", line 357, in first_check
                                                store_fanarttv_datecode( present_datecode )
                                              File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/database.py", line 431, in store_fanarttv_datecode
                                                local_artist_count, album_count, artist_count, cdart_existing = new_local_count()
                                              File "/storage/.kodi/addons/script.cdartmanager-Helix/resources/lib/database.py", line 719, in new_local_count
                                                c.execute(query)
                                            OperationalError: no such table: counts
                                            -->End of Python script error report<--
(2015-09-10, 22:51)scott967 Wrote: [ -> ]
(2015-09-10, 07:54)Msamurai Wrote: [ -> ]i found the answer for your problem
the problem is in musicbrainz id tags you can remove it from musicbrainz picard or the easy way you can add all your music into mp3tag and select all you music go to view, extended tags look for musicbrainz id tag (about 6 tags) delete it all and save it. rescan the database of your music
i hope it will work for you as it worked for me

Well, that might work but I don't recommend it. Better is to make sure your musicbrainz id tags are consistent and none are missing. A code change (PR) was recently approved for Kodi Jarvis (16) that improves handling of music with musicbrainz id tags so you might find yourself left behind if you stripped out all your MBIDs.

scott s.
.

Thank you for the information
let's wait for kodi 16
(2015-09-11, 18:14)gibxxi Wrote: [ -> ]
(2015-09-10, 20:00)Powerhouse Wrote: [ -> ]Ok, so the original cdART Manager no longer works, but the updated one from stef.an does (I'm on Kodi 15.1, and see his repository lists it as Helix+ compatible)?

Also, if I scrap all my music with MusicBrianz Picard. Then Run all the Music files through MediaElch (to grab all the Fanart, Album Art, Artist.nfo, Banners, etc), is there a point to still using cdART Manager? Does cdART Manager do something that MediaElch misses?

Not familiar with MediaElch, does it download CD artwork (cdart.png) files? If not then there's one thing that cdART Manager does that you'll want to retain it for. cdART Manager has been around for quite a long time, so a lot of skins are already set up to make use of it if it's installed. To take advantage of that integration with another program / utility, said program has to create filenames / paths with exactly the same structure as cdART Manager would do, otherwise your going to need to rename a lot of files or manually point your selected skin to resources you have downloaded.

Most of the 3rd party media managers I've seen/used tend to bias Movies and TV. Music is a bit of a poor relation in comparison. I guess this is 'most' people's main area of focus for their media center.

Yep, MediaElch does indeed download cdart.png files, and multiple fanart files if they are available. Also MediaElch grabs the MusicBrainz info for the Artists, and their CD's, so it integrates well within Kodi.

The problem I'm seeing with Skin integration of cdART Manager, is they are using the old non-working version, so when you run it, it just sits there (sometimes for hours) not doing anything, but you never know that. Which why I ended up in this thread to see what's going on. Big Grin
(2015-09-14, 20:29)Powerhouse Wrote: [ -> ]
(2015-09-11, 18:14)gibxxi Wrote: [ -> ]
(2015-09-10, 20:00)Powerhouse Wrote: [ -> ]Ok, so the original cdART Manager no longer works, but the updated one from stef.an does (I'm on Kodi 15.1, and see his repository lists it as Helix+ compatible)?

Also, if I scrap all my music with MusicBrianz Picard. Then Run all the Music files through MediaElch (to grab all the Fanart, Album Art, Artist.nfo, Banners, etc), is there a point to still using cdART Manager? Does cdART Manager do something that MediaElch misses?

Not familiar with MediaElch, does it download CD artwork (cdart.png) files? If not then there's one thing that cdART Manager does that you'll want to retain it for. cdART Manager has been around for quite a long time, so a lot of skins are already set up to make use of it if it's installed. To take advantage of that integration with another program / utility, said program has to create filenames / paths with exactly the same structure as cdART Manager would do, otherwise your going to need to rename a lot of files or manually point your selected skin to resources you have downloaded.

Most of the 3rd party media managers I've seen/used tend to bias Movies and TV. Music is a bit of a poor relation in comparison. I guess this is 'most' people's main area of focus for their media center.

Yep, MediaElch does indeed download cdart.png files, and multiple fanart files if they are available. Also MediaElch grabs the MusicBrainz info for the Artists, and their CD's, so it integrates well within Kodi.

The problem I'm seeing with Skin integration of cdART Manager, is they are using the old non-working version, so when you run it, it just sits there (sometimes for hours) not doing anything, but you never know that. Which why I ended up in this thread to see what's going on. Big Grin

The solution here would be to do what I did. Download and install stef.an's version, and manually extract it to your addons folder, then rename the addon folder itself to be exactly the same wording as the old one. Anything that references the addon by it's folder name will then work. With regards artwork, you just point your skin of choice to either your music library folder, or the separate, 'extended artwork' folder selected via cdART Manager's 'Path to Music Library' setting.

This is one of a few places in the addon that are worded badly IMHO. The 'Path to Music Library' setting/folder doesn't actually mean that at all. It's simply a folder where you wish to place any artwork downloaded by cdART Manager that is NOT either a folder.jpg or a cdart.png file. I like to keep my music folders clean as they are referenced by other programs, so I store the extended artwork in a seperate folder well away from the music. It's this folder I then specify in my skin of choice, for artwork. folder.jpgs and cdart.pngs ALWAYS reside with the music for obvious reasons, and this cannot be changed.
Is the stefan version working on isengard ?
(2015-10-01, 22:46)jiquem Wrote: [ -> ]Is the stefan version working on isengard ?

Working fine on Isengard here
what hv i missed?
run musicbrain on some 26000 songs. great prog that tho i barely understand
thinking it just organises metadata, i decided to run cdart, both the repo and git vers
regardless of config, had most success with git, but it does nothing but flash a dialog 2 fast to read!

BUT seems redundant, appears mbrn scraped artist fanart anyway.
any1?
Still doesn't work on Isengard for me, using stefan's version. Nothing happens when clicking/selecting "Automatic Download" for any of the art.
Works fine here on isengard, you can try to delete the cdart settings folder in user data/cdartmanager.

Make a backup just in case
(2015-10-10, 17:23)meowmoo Wrote: [ -> ]Works fine here on isengard, you can try to delete the cdart settings folder in user data/cdartmanager.

Make a backup just in case

Yeah, seems to work for me on Isengard as well now, nice.
Now I just want a "Collect All Art" button so I don't have to go through each type of art individually.
(2015-10-07, 06:29)Greg. Wrote: [ -> ]what hv i missed?
run musicbrain on some 26000 songs. great prog that tho i barely understand
thinking it just organises metadata, i decided to run cdart, both the repo and git vers
regardless of config, had most success with git, but it does nothing but flash a dialog 2 fast to read!

BUT seems redundant, appears mbrn scraped artist fanart anyway.
any1?

From experience, MusicBrainz is not only limited in the sites it will download art from (and I don't think fanart.tv is on that list) the naming of the artwork file naming will not be consistent with what Kodi expects to see. Also, you won't get artist thumbnails / banners etc, by default.

cdART Manager gets most of it's artwork from fanart.tv, where only high-quality artwork is allowed. It won't modify your music tags, which means no artwork embedding in tags, but your folder.jpg files, and cdart.png files will be a lot higher quality for those artists matched, than anything MusicBrainz will provide via Picard.

If your getting a flash dialog that disappears quickly, this suggests to me that you either have no cdART Manager database (you need to create one), it's empty, or none of your artists have been matched. Go through the menu system to a manual search for an artwork type. You ought to see a list of artists. If none of yours are green at all, it's not matching your artists for some reason. Try either a 'refresh add-on database' or an 'Update' to ensure the cdART Manager database has been created correctly and has been populated.

<cdART-Manager> -> <Advanced> -> <Update / Refresh add-on database>

I'd also suggest making sure your music library is up to date first, as cdART database building can take a while.
Just want to report back that I'm still alive... Mission "make a Skydiving A-Grade license this summer": accomplished Big Grin
...and as it's getting darker and colder over here I'm sure I'll find some time to spend on the script soon.

For me everything is working on Isengard, I didn't change anything since then. I'm unsure if I should focus on stability first or prepare for a complete rework.

So what's the most important thing you are missing?
- make it more stable (drop some features if neccesary, e.g. JSON-Api)
- make it more stable (but do not drop features!)
- make it faster!
- create a "do it all at once" button
- create a service so I can continue using Kodi while te data is collected
Definitely a "Do it all at once" button please Smile
Oh, and congratulations on the licence Wink