• 1
  • 153
  • 154
  • 155
  • 156(current)
  • 157
[RELEASE] cdART Manager Script
Wink 
(2015-12-19, 00:27)stef.an Wrote: Hi Jumpy73,
I've uploaded some changes to the NG branch addressing your problem (sorry... I remember I read it but somehow overlooked it anyway). Please give it a try and report if it works better.
You're a good source of "problematic music items". First your blue boyband and now it looks like your Eagles album is one of the few which has multiple covers on fanart.tv Wink

Hi Stef.an,
I tried your new custom release just some minutes ago... I added 3 new albums of Santana
--> cdArts have been downloaded without problems using "Automatic download" procedure
--> coverArts have not been downloaded using "Automatic download" procedure. Instead, if a choose the download by Artist menu, select Santana from the Artists list, the procedure get back to me the right 3 albums coverArts. Then I assume I can download them without problems.

Please find below the Kodi Log. I hope this helps even if it is full of probably not so useful "DEBUG" lines!

https://www.dropbox.com/s/ug5htc0fxojtj8x/kodi.log?dl=0

Thanks and regards
Okay, could you please try this:
1. Go to Settings, Extra-Settings and enable* "Overwrite low-res existing cdARTs" ("Sovrascrivi le cdART a bassa risoluzione già esistenti")
2. Exit cdArt Manager
3. start it again and go to Advanced, Modify Addon Database, Update Database ("Aggiorna database", no need to "Ricarica il database locale")
4. Retry *automatic* download of the covers and see if it works now

This option is not working anymore but I think there might be a bug in handling the parameter if it's disabled*... I'll fix that if it's the solution.

*) reverse it... I think you've got it currently enabled
(2015-12-22, 14:41)stef.an Wrote: Okay, could you please try this:
1. Go to Settings, Extra-Settings and enable* "Overwrite low-res existing cdARTs" ("Sovrascrivi le cdART a bassa risoluzione già esistenti")
2. Exit cdArt Manager
3. start it again and go to Advanced, Modify Addon Database, Update Database ("Aggiorna database", no need to "Ricarica il database locale")
4. Retry *automatic* download of the covers and see if it works now

This option is not working anymore but I think there might be a bug in handling the parameter if it's disabled*... I'll fix that if it's the solution.

*) reverse it... I think you've got it currently enabled

Uhmm... I will try it but I'm not confident this solve the issue. The problems I'm still having are on albumArts and not on cdArts
Tks
Trust Me, I'm an Engineer Big Grin
If you're able you could update to the latest version which will provide me some more debugging info.
(2015-12-20, 13:17)stef.an Wrote: Hi ryborg, the repo version doesn't work anymore, you'll have to install my current release manually.
Here is how (Post 2299): http://forum.kodi.tv/showthread.php?tid=...pid2171465

stef.an, I've followed your directions a few times, and just did it once again but I'm still having no luck.
It seems like it's not creating the database correctly and as soon as it runs it hangs while either trying to scan for music or with the modal titled "CDART MANGER"

Here's the latest log:

Code:
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - ############################################################
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    cdART Manager                                         #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #        default.py module                                 #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    script.cdartmanager                                   #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    Giftie                                                #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    4.0.5                                                 #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    Chaos_666, Magnatism, Kode, Martijn                   #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    Thanks for the help guys...                           #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - #    Frodo                                                 #
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - ############################################################
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Looking for settings.xml
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Addon Work Folder: /home/xbmc/.kodi/userdata/addon_data/script.cdartmanager/
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Addon Database: /home/xbmc/.kodi/userdata/addon_data/script.cdartmanager/l_cdart.db
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Addon settings: /home/xbmc/.kodi/userdata/addon_data/script.cdartmanager/settings.xml
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Addon Work Folder Found, Checking For Database
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Addon Db Found, Checking Database Version
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Looking for database version: 3.0.3
17:33:43 T:139935495464704   ERROR: Traceback (most recent call last):
17:33:43 T:139935495464704   ERROR:   File "/home/xbmc/.kodi/addons/script.cdartmanager/default.py", line 482, in <module>
17:33:43 T:139935495464704   ERROR:     c.execute(query)
17:33:43 T:139935495464704   ERROR: OperationalError: no such table: counts
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - # Error: OperationalError
17:33:43 T:139935495464704  NOTICE: [cdART Manager] - Trying To Delete Database
17:33:45 T:139935495464704  NOTICE: [cdART Manager] - # Setting up Script
17:33:45 T:139935495464704  NOTICE: [cdART Manager] - Addon Db Not Found - Building New Addon Db
17:33:46 T:139935495464704   ERROR: Traceback (most recent call last):
17:33:46 T:139935495464704   ERROR:   File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/json_utils.py", line 28, in retrieve_json_dict
17:33:46 T:139935495464704   ERROR:     json_dict = result[items]
17:33:46 T:139935495464704   ERROR: KeyError: 'albums'
17:33:46 T:139935495464704  NOTICE: [json_utils.py] - retrieve_json_dict - JSONRPC -
                                            {'jsonrpc': '2.0', 'id': 1, 'result': {'limits': {'start': 0, 'total': 0, 'end': 0}}}
17:33:46 T:139935495464704  NOTICE: [json_utils.py] - retrieve_json_dict - Error trying to get json response
17:33:46 T:139935495464704   ERROR: Traceback (most recent call last):
17:33:46 T:139935495464704   ERROR:   File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/database.py", line 619, in get_local_artists_db
17:33:46 T:139935495464704   ERROR:     c.execute(query)
17:33:46 T:139935495464704   ERROR: OperationalError: no such table: lalist
17:33:46 T:139935495464704   ERROR: Traceback (most recent call last):
17:33:46 T:139935495464704   ERROR:   File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/database.py", line 619, in get_local_artists_db
17:33:46 T:139935495464704   ERROR:     c.execute(query)
17:33:46 T:139935495464704   ERROR: OperationalError: no such table: lalist
17:33:46 T:139935495464704  NOTICE: [cdART Manager] - Checking for artist match with fanart.tv - First Check
17:33:46 T:139935495464704   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 "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/gui.py", line 71, in onInit
                                                self.setup_all()
                                              File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/gui.py", line 1048, in setup_all
                                                first_check( all_artists, local_artists )
                                              File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/fanarttv_scraper.py", line 356, in first_check
                                                store_fanarttv_datecode( present_datecode )
                                              File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/database.py", line 430, in store_fanarttv_datecode
                                                local_artist_count, album_count, artist_count, cdart_existing = new_local_count()
                                              File "/home/xbmc/.kodi/addons/script.cdartmanager/resources/lib/database.py", line 718, in new_local_count
                                                c.execute(query)
                                            OperationalError: no such table: counts
                                            -->End of Python script error report<--
17:34:00 T:139936333817600  NOTICE: service.libraryautoupdate-0.9.8 : Skipping scan, only run when idle
Sorry ryborg, you're still running the repo version (Frodo) and not mine from the github repo. This version is broken for quite a while now.
If you followed the instructions exactly - especially about uninstalling the old version - I don't know what's wrong with your installation.
(2015-12-22, 19:38)stef.an Wrote: Trust Me, I'm an Engineer Big Grin
If you're able you could update to the latest version which will provide me some more debugging info.

Hi Stef.an,

Thinking about the setting you mentioned I tested the following scenario:

1) Starting assumptions:
- dowloaded and installed last cdArt manager release from your remote repository
- kodi music library and cdArt manager DBs perfectly aligned --> same artists, albums and local cdarts
- local coverArts from mp3 file tag already available in local album folders

2) Cancel all the Artist/albums subfolders in local music library, except for 3 Santana albums
- kodi music library DB has been aligned to the new local music library
- cdArt manager DB has NOT been aligned to the new local music library

3) Enter in cdArt Manager
- verify the setting you mentioned "Overwrite low-res existing cdARTs" (now I understand that with cdARTs statement, both cdArts and coverArts are contemporary managed by the addon) was flagged On

4) Select coverArts/Automatic download from the menu --> now all the coverArts have been downloaded successfully, except for the 3 Santana's albums (already available from mp3 file tag, as declared in step 1)

5) Then, in the local music folder all the artist/album subfolders structure has been rebuilded by cdArt Manager during coverArts automatic downloading, always except for Santana folder

What do I understand from this testing scenario? --> The problem was where you imagined - "Overwrite low-res existing cdARTs" option in the Advanced settings menu !!! If cdArt Manager, during automatic downloading procedure, finds an already available local copy of coverArt, even if the "Overwrite low-res existing cdARTs" option is flagged On, It doesn't overwrite the local copy of coverArt

Now I also undestand why I have not had problems with cdArts --> no previously downloaded local cdArts were available in local music library :-)

Are you able to fix it in the next release of addon?

Many thanks for you time and support
You're right - regardless of the setting no images are being overwritten anymore. I've mentioned that a few posts ago when I released the (quick and dirty fixed) version supporting the new fanart.tv API v3.
This cannot be fixed the easy way, here is the reason if you're interested: https://forum.fanart.tv/viewtopic.php?f=4&t=403

If you read the last few pages you'll see that I've started a complete rewrite of the plugin and maybe I'll implement something neat but the list is long and that'll take time.
Two years ago I tried this addon and could not use it correctly. Today I was using a modded version of my skin and noticed that the correct cd art was showing when playing an album and not when using my regular skin.............I asked the mod author about it and basically was told to make cd art manager "install" my artwork. Can someone point me in the right direction?

Thank you
(2015-12-23, 21:50)stef.an Wrote: You're right - regardless of the setting no images are being overwritten anymore. I've mentioned that a few posts ago when I released the (quick and dirty fixed) version supporting the new fanart.tv API v3.
This cannot be fixed the easy way, here is the reason if you're interested: https://forum.fanart.tv/viewtopic.php?f=4&t=403

Tks Stef.an...
I have read the topic in fanart.tv forum and I understand the issue. I don't know if this can help you, but a workaround could be as follow:
You can always download the albumart/cdart in local file system with a "temporary" file name, then you can compare the resolution of both the images, if any local image is already available at that time.
If the resolution of the new image is higher than the actual image --> overwrite old image
If the resolution of the new image is lower than the actual image --> delete new image

For sure this procedure takes longer time than the actual one, but it addresses the issue in a right way
Hi there,

Is there any reason why I should have way less CDarts than albums, assuming my albums are pretty current and not obscure?

Also, does the programme scan recursively, or only one layer down?
Got all sorted - looks really good Smile
I Can't get it to work , tried what Stefan suggested a few pages back , did'nt work for me , trying on 15.2 and 16.0 Beta 4 .

Someone can please help ?
If I add some new music albums to the kodi library (aligned to cdArt manager db), what do I have to do in order to update the cdArt manager db and align it to the new kodi music library?
When I open cdArt manager, the script automatically check fanart.tv web site but nothing else is apparently done... for instance, the number of albums/artists at the botton of the windows doesn't increase, even if I added new music albums.

For sure, each time, I can rebuild the cdArt manager db but, with a large kodi music library, this solution would be really far from being the best possible solution

Tks in advance for your help
hi stef.an

I was asking the autor of Artist Slidshow, to use the same Illegal Character Replace Logic as CdArt Manger do, so AS reconize all the "renamed" folders from cdArt Manger

http://forum.kodi.tv/showthread.php?tid=...pid2207843

If you can point him in the right direction, since i have no idea how this stuff works, would be very welcome

Thanks
  • 1
  • 153
  • 154
  • 155
  • 156(current)
  • 157

Logout Mark Read Team Forum Stats Members Help
[RELEASE] cdART Manager Script6