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)



RE: [RELEASE] cdART Manager Script - slandells - 2012-12-06

(2012-12-06, 17:28)giftie Wrote: I would avoid using the GIT. There are bugs(big ones)

Are the bugs worse than not being able to run the add-on at all? I haven't been able to run it since before Beta1, so would like to update some of my artwork, just wanted to see if I'm better off continuing to wait or run the Git version?


RE: [RELEASE] cdART Manager Script - giftie - 2012-12-07

The bugs that are in the current GIT also stop you from downloading. As they affect the method the script uses to check to see if fanart.tv has existing artwork. It also changes the addon database to handle this new info(makes a backup before any changes). I might have the next version out today, just testing, then setting my backup computer to link to the GIT so I can update that as well.




RE: [RELEASE] cdART Manager Script - slandells - 2012-12-07

Sweet, love your work Smile


RE: [RELEASE] cdART Manager Script - Ectholian - 2012-12-07

I changed my post Smile

The script is getting very big improvements the last releases!


RE: [RELEASE] cdART Manager Script - giftie - 2012-12-08

Latest test release available -> https://github.com/downloads/Giftie/script.cdartmanager/script.cdartmanager.2.7.8.zip
Code:
2.7.8
- Fix - Remove Extrafanart Limit for Eden version
- Change - Use the JSON format of the Fanart.TV API
- Change - remove the old 'get recognized artists' in favour of the new New Music from Fanart.TV
- Add - make use of fanart.tv's new music option in API
- Add - User can now set the MusicBrainz server
- Fix - correct Frodo issue

I know it doesn't look like much, there was a big change on how the script handles access to Fanart.tv.

When you first run the script, it will make a backup of your database, then change the database to the new format. At this time it will retrieve all the matching artist's artwork files and add this info into the database(if the artist has artwork on fanart.tv.) This will take a short time depending on how large your artist lists are.

Once this is done, the script will only check to see if there is new music artwork every time you start the script. This should speed up the script and lessen the requests on fanart.tv

The user now also has the option to use a different MusicBrainz server. This is untested and may not work properly right away. When selecting the new server, you will also be able to change the delay between data requests. The available delays are from 0 to 900ms in 100ms steps. The 900ms delay is what is needed to keep musicbrainz.org happy.

Please test and post full debug logs if problems arise.


RE: [RELEASE] cdART Manager Script - andydufresne - 2012-12-08

2.7.8 script won't run for me. Get an error message. Here is the log.

http://pastebin.com/vVAy1p3e


Re: [RELEASE] cdART Manager Script - giftie - 2012-12-08

I see the problem. I forgot Eden does not report slider values properly. Will fix tomorrow


RE: [RELEASE] cdART Manager Script - ElPolo - 2012-12-08

This problem occurs only with Eden ?

I can't launch 2.7.8 versin, error message in notification, i use Freodo Beta 2. I Will post log as soon as my wife stop trying to kill me :o


RE: [RELEASE] cdART Manager Script - gibxxi - 2012-12-08

For me, the recent versions (2.7.6 upwards) takes on average 2-3 minutes to "start" and the UI to appear. When it does come up the UI doesn't have focus, so it's not possible to navigate with directional keys only. It's nessecary for me to move the mouse pointer over one of the menu items for it to regain focus and be able to continue using the script.

It may be better to start the UI first, then display a Dialog while cdART manager does it's Fanart.tv search so the user doesn't assume it's hung. Other than that, the script seems a lot faster in all respects in 2.7.8. Thanks Giftie!

Smile


RE: [RELEASE] cdART Manager Script - ElPolo - 2012-12-08

(2012-12-08, 13:16)ElPolo Wrote: This problem occurs only with Eden ?

I can't launch 2.7.8 versin, error message in notification, i use Freodo Beta 2. I Will post log as soon as my wife stop trying to kill me :o

So, pastebinlog : http://pastebin.com/d35gC7zs

What i found in this is :
Code:
13:01:09 T:3037083968   DEBUG: ExecuteXBMCAction : To RunAddon(script.cdartmanager)
13:01:09 T:2390317888   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x8de00468
13:01:09 T:3037083968   DEBUG: Previous line repeats 1 times.
13:01:09 T:3037083968    INFO: initializing python engine.
13:01:09 T:3037083968   DEBUG: new python thread created. id=15
13:01:09 T:2178939712  NOTICE: Thread XBPyThread start, auto delete: false
13:01:09 T:2178939712   DEBUG: Python thread: start processing
13:01:09 T:2178939712  NOTICE: -->Python Interpreter Initialized<--
13:01:09 T:2178939712   DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/script.cdartmanager/default.py
13:01:09 T:2178939712   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.cdartmanager:/home/xbmc/.xbmc/addons/script.module.xbmcswift/lib:/home/xbmc/.xbmc/addons/script.module.demjson/lib:/usr/share/xbmc/addons/script.module.simplejson/lib:/home/xbmc/.xbmc/addons/weather.wunderground/resources/lib/wunderground:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.mechanize/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:
13:01:09 T:2178939712   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.cdartmanager
13:01:09 T:2178939712   DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.python api
13:01:09 T:2178939712   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: '9.000000'
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.cdartmanager/default.py", line 41, in <module>
                                                mb_delay               = int( __addon__.getSetting( "mb_delay" ) )
                                            ValueError: invalid literal for int() with base 10: '9.000000'
                                            -->End of Python script error report<--
13:01:09 T:2178939712    INFO: Python script stopped
13:01:09 T:2178939712   DEBUG: Thread XBPyThread 2178939712 terminating
13:01:09 T:3037083968   DEBUG: waiting for python thread 15 to stop
13:01:09 T:3037083968   DEBUG: python thread 15 destructed


Hope this helps !


RE: [RELEASE] cdART Manager Script - samurai07 - 2012-12-08

Hi giftie,

(2012-11-17, 20:36)giftie Wrote:
(2012-11-17, 18:42)samurai07 Wrote: I have another problem. I manually added MBIDs from albums which are not automatically found. When I then update the database the formerly changed albums will selected as changed and updated again. With this update the manually added MBIDs are removed. This shouldn't happen.

I'll check it out..

have you fixed this with the new version?


Re: RE: [RELEASE] cdART Manager Script - giftie - 2012-12-08

(2012-12-08, 14:14)ElPolo Wrote:
(2012-12-08, 13:16)ElPolo Wrote: This problem occurs only with Eden ?

I can't launch 2.7.8 versin, error message in notification, i use Freodo Beta 2. I Will post log as soon as my wife stop trying to kill me :o

So, pastebinlog : http://pastebin.com/d35gC7zs

What i found in this is :
Code:
13:01:09 T:3037083968   DEBUG: ExecuteXBMCAction : To RunAddon(script.cdartmanager)
13:01:09 T:2390317888   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x8de00468
13:01:09 T:3037083968   DEBUG: Previous line repeats 1 times.
13:01:09 T:3037083968    INFO: initializing python engine.
13:01:09 T:3037083968   DEBUG: new python thread created. id=15
13:01:09 T:2178939712  NOTICE: Thread XBPyThread start, auto delete: false
13:01:09 T:2178939712   DEBUG: Python thread: start processing
13:01:09 T:2178939712  NOTICE: -->Python Interpreter Initialized<--
13:01:09 T:2178939712   DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/script.cdartmanager/default.py
13:01:09 T:2178939712   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.cdartmanager:/home/xbmc/.xbmc/addons/script.module.xbmcswift/lib:/home/xbmc/.xbmc/addons/script.module.demjson/lib:/usr/share/xbmc/addons/script.module.simplejson/lib:/home/xbmc/.xbmc/addons/weather.wunderground/resources/lib/wunderground:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.mechanize/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:
13:01:09 T:2178939712   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.cdartmanager
13:01:09 T:2178939712   DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.python api
13:01:09 T:2178939712   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: '9.000000'
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.cdartmanager/default.py", line 41, in <module>
                                                mb_delay               = int( __addon__.getSetting( "mb_delay" ) )
                                            ValueError: invalid literal for int() with base 10: '9.000000'
                                            -->End of Python script error report<--
13:01:09 T:2178939712    INFO: Python script stopped
13:01:09 T:2178939712   DEBUG: Thread XBPyThread 2178939712 terminating
13:01:09 T:3037083968   DEBUG: waiting for python thread 15 to stop
13:01:09 T:3037083968   DEBUG: python thread 15 destructed


Hope this helps !

Can you to into settings and just save them(click ok). It works fine on my system. I think XBMC might not properly store the value at first. It is an easy fix, I'm just not close to my computer to fix it.


Re: RE: [RELEASE] cdART Manager Script - giftie - 2012-12-09

(2012-12-08, 15:08)samurai07 Wrote: Hi giftie,

(2012-11-17, 20:36)giftie Wrote:
(2012-11-17, 18:42)samurai07 Wrote: I have another problem. I manually added MBIDs from albums which are not automatically found. When I then update the database the formerly changed albums will selected as changed and updated again. With this update the manually added MBIDs are removed. This shouldn't happen.

I'll check it out..

have you fixed this with the new version?

It should be fixed now. The problem, though I haven't tested it. I found I wasn't correctly storing the mbid.


RE: [RELEASE] cdART Manager Script - ElPolo - 2012-12-09

(2012-12-08, 23:44)giftie Wrote: Can you to into settings and just save them(click ok). It works fine on my system. I think XBMC might not properly store the value at first. It is an easy fix, I'm just not close to my computer to fix it.

I tried but it didn't work. I click on default, and it worked. But i can't modify, or same problem occurs (i confess, i didn't try all options :p)


RE: [RELEASE] cdART Manager Script - cdizzel99 - 2012-12-09

(2012-12-08, 23:44)giftie Wrote:
(2012-12-08, 14:14)ElPolo Wrote:
(2012-12-08, 13:16)ElPolo Wrote: This problem occurs only with Eden ?

I can't launch 2.7.8 versin, error message in notification, i use Freodo Beta 2. I Will post log as soon as my wife stop trying to kill me :o

So, pastebinlog : http://pastebin.com/d35gC7zs

What i found in this is :
Code:
13:01:09 T:3037083968   DEBUG: ExecuteXBMCAction : To RunAddon(script.cdartmanager)
13:01:09 T:2390317888   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x8de00468
13:01:09 T:3037083968   DEBUG: Previous line repeats 1 times.
13:01:09 T:3037083968    INFO: initializing python engine.
13:01:09 T:3037083968   DEBUG: new python thread created. id=15
13:01:09 T:2178939712  NOTICE: Thread XBPyThread start, auto delete: false
13:01:09 T:2178939712   DEBUG: Python thread: start processing
13:01:09 T:2178939712  NOTICE: -->Python Interpreter Initialized<--
13:01:09 T:2178939712   DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/script.cdartmanager/default.py
13:01:09 T:2178939712   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.cdartmanager:/home/xbmc/.xbmc/addons/script.module.xbmcswift/lib:/home/xbmc/.xbmc/addons/script.module.demjson/lib:/usr/share/xbmc/addons/script.module.simplejson/lib:/home/xbmc/.xbmc/addons/weather.wunderground/resources/lib/wunderground:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.mechanize/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:
13:01:09 T:2178939712   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.cdartmanager
13:01:09 T:2178939712   DEBUG: Instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.0 of the xbmc.python api
13:01:09 T:2178939712   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: '9.000000'
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.cdartmanager/default.py", line 41, in <module>
                                                mb_delay               = int( __addon__.getSetting( "mb_delay" ) )
                                            ValueError: invalid literal for int() with base 10: '9.000000'
                                            -->End of Python script error report<--
13:01:09 T:2178939712    INFO: Python script stopped
13:01:09 T:2178939712   DEBUG: Thread XBPyThread 2178939712 terminating
13:01:09 T:3037083968   DEBUG: waiting for python thread 15 to stop
13:01:09 T:3037083968   DEBUG: python thread 15 destructed


Hope this helps !

Can you to into settings and just save them(click ok). It works fine on my system. I think XBMC might not properly store the value at first. It is an easy fix, I'm just not close to my computer to fix it.

Saving my settings file didn't work however when I went into the userdata addon_data settings xml file and changed this line from the previous value of 10.000000 to 10 I can launch the script.

<setting id="mb_delay" value="10" />