• 1
  • 151
  • 152
  • 153(current)
  • 154
  • 155
  • 157
[RELEASE] cdART Manager Script
I've been trying to get the CDArt addon working the last couple of days; I started out with the default package then came across stef.an's addon.... I have an issue where my library gets scanned fine, but the addon is failing to download any CDArt at all. I had a very quick look through the logs and can't see anything obviously wrong, other than the addon seems to be failing to connect to the remote database; I tried the URLs manually (on a different machine) and they don't seem to work..... Network connection on my device is fine:

I cleaned out my Kodi music library, and added only two albums to it to reduce debug time.... I checked the fanart.tv website to check the albums I added exist, and both do, so there is (or at least, should be) content for the addon to download, here's the full debug log I captured......

Code:
osmc@osmc:~/.kodi/temp$ cat kodi.log

17:34:06  34.159748 T:1586795552  NOTICE: Thread LanguageInvoker start, auto delete: false
17:34:06  34.160225 T:1586795552    INFO: initializing python engine.
17:34:06  34.160400 T:1586795552   DEBUG: CPythonInvoker(10, /home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py): start processing
17:34:06  34.561844 T:1666937888   DEBUG: RunQuery took 53 ms for 330 items query: select * from episode_view  WHERE ((episode_view.playCount IS NULL OR episode_view.playCount < 1))
17:34:06  34.625126 T:1586795552  NOTICE: -->Python Interpreter Initialized<--
17:34:06  34.625458 T:1586795552   DEBUG: CPythonInvoker(10, /home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py): the source file to load is "/home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py"
17:34:06  34.626205 T:1586795552   DEBUG: CPythonInvoker(10, /home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py): setting the Python path to /home/osmc/.kodi/addons/script.cdartmanager-Helix:/usr/share/kodi/addons/script.module.pil/lib:/usr/share/kodi/addons/script.module.simplejson/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/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/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0
17:34:06  34.626354 T:1586795552   DEBUG: CPythonInvoker(10, /home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py): entering source directory /home/osmc/.kodi/addons/script.cdartmanager-Helix
17:34:06  34.626572 T:1586795552   DEBUG: CPythonInvoker(10, /home/osmc/.kodi/addons/script.cdartmanager-Helix/default.py): instantiating addon using automatically obtained id of "script.cdartmanager" dependent on version 2.1.0 of the xbmc.python api
17:34:07  35.397720 T:1666937888   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strReleaseType = 'album'
17:34:07  35.399849 T:1666937888   DEBUG: GetAlbumsByWhere - query took 2 ms
17:34:07  35.400173 T:1666937888   DEBUG: DatabaseUtils::GetSortFieldList: unknown field 36
17:34:07  35.405872 T:1658549280   DEBUG: Skin Widgets: Total time needed to request random queries: 0:00:11.786381
17:34:07  35.441704 T:1658549280   DEBUG: RunQuery took 5 ms for 0 items query: select * from movie_view  WHERE (movie_view.idFile  IN (SELECT DISTINCT idFile FROM bookmark WHERE type = 1))
17:34:07  35.582539 T:1658549280   DEBUG: RunQuery took 19 ms for 0 items query: SELECT * FROM tvshow_view  WHERE ( ((tvshow_view.watchedcount > 0 AND tvshow_view.watchedcount < tvshow_view.totalCount) OR (tvshow_view.watchedcount = 0 AND EXISTS (SELECT 1 FROM episode_view WHERE episode_view.idShow = tvshow_view.idShow AND episode_view.resumeTimeInSeconds > 0))))
17:34:07  35.717049 T:1658549280   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strReleaseType = 'album'
17:34:07  35.719574 T:1658549280   DEBUG: GetAlbumsByWhere - query took 2 ms
17:34:07  35.734356 T:1586795552   DEBUG: POParser: loaded 191 strings from file /home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/language/English/strings.po
17:34:07  36.062119 T:1586795552  NOTICE: [cdART Manager] - ############################################################
17:34:07  36.062496 T:1586795552  NOTICE: [cdART Manager] - #    cdART Manager                                         #
17:34:07  36.062664 T:1586795552  NOTICE: [cdART Manager] - #        default.py module                                 #
17:34:07  36.062778 T:1586795552  NOTICE: [cdART Manager] - #    script.cdartmanager                                   #
17:34:07  36.062889 T:1586795552  NOTICE: [cdART Manager] - #    Giftie                                                #
17:34:07  36.062984 T:1586795552  NOTICE: [cdART Manager] - #    4.0.5                                                 #
17:34:07  36.063156 T:1586795552  NOTICE: [cdART Manager] - #    Ppic, Reaven, Imaginos, redje, Jair,                  #
17:34:07  36.063263 T:1586795552  NOTICE: [cdART Manager] - #    Chaos_666, Magnatism, Kode, Martijn                   #
17:34:07  36.063358 T:1586795552  NOTICE: [cdART Manager] - #    Thanks for the help guys...                           #
17:34:07  36.063454 T:1586795552  NOTICE: [cdART Manager] - #    Helix                                                 #
17:34:07  36.063545 T:1586795552  NOTICE: [cdART Manager] - ############################################################
17:34:07  36.063641 T:1586795552  NOTICE: [cdART Manager] - Looking for settings.xml
17:34:07  36.065296 T:1586795552   DEBUG: [cdART Manager] - Settings
17:34:07  36.071632 T:1586795552   DEBUG: [cdART Manager] -           backup_during_update: true
17:34:07  36.072102 T:1586795552   DEBUG: [cdART Manager] -                    backup_path:
17:34:07  36.072369 T:1586795552   DEBUG: [cdART Manager] -            change_period_atend: true
17:34:07  36.072617 T:1586795552   DEBUG: [cdART Manager] -                     check_mbid: false
17:34:07  36.072838 T:1586795552   DEBUG: [cdART Manager] -             enable_all_artists: false
17:34:07  36.073120 T:1586795552   DEBUG: [cdART Manager] -            enable_fanart_limit: false
17:34:07  36.073341 T:1586795552   DEBUG: [cdART Manager] -                 enable_hdlogos: true
17:34:07  36.073593 T:1586795552   DEBUG: [cdART Manager] -                 enable_missing: true
17:34:07  36.073833 T:1586795552   DEBUG: [cdART Manager] -         enable_replace_illegal: false
17:34:07  36.074100 T:1586795552   DEBUG: [cdART Manager] -                   enablecustom: false
17:34:07  36.074322 T:1586795552   DEBUG: [cdART Manager] -                   enableresize: false
17:34:07  36.074528 T:1586795552   DEBUG: [cdART Manager] -                   fanart_limit: 10
17:34:07  36.074738 T:1586795552   DEBUG: [cdART Manager] -                         folder: 0
17:34:07  36.077602 T:1586795552   DEBUG: [cdART Manager] -             illegal_characters: :*<>/\|?"
17:34:07  36.077919 T:1586795552   DEBUG: [cdART Manager] -                          local: 0
17:34:07  36.078327 T:1586795552   DEBUG: [cdART Manager] -                     localcdart: 0
17:34:07  36.078571 T:1586795552   DEBUG: [cdART Manager] -                       mb_delay: 9
17:34:07  36.078796 T:1586795552   DEBUG: [cdART Manager] -              mbid_match_number: 10
17:34:07  36.079018 T:1586795552   DEBUG: [cdART Manager] -                   missing_path:
17:34:07  36.079281 T:1586795552   DEBUG: [cdART Manager] -                     music_path: /home/osmc/cdart/
17:34:07  36.079556 T:1586795552   DEBUG: [cdART Manager] -             musicbrainz_server: http://musicbrainz.org
17:34:07  36.079788 T:1586795552   DEBUG: [cdART Manager] -           notify_in_background: false
17:34:07  36.080074 T:1586795552   DEBUG: [cdART Manager] -                     recognized: 0
17:34:07  36.080273 T:1957679664   DEBUG: ------ Window Deinit () ------
17:34:07  36.080372 T:1586795552   DEBUG: [cdART Manager] -                         remote: 0
17:34:07  36.080647 T:1586795552   DEBUG: [cdART Manager] -                    remotelocal: 0
17:34:07  36.080948 T:1586795552   DEBUG: [cdART Manager] -              replace_character: _
17:34:07  36.081322 T:1586795552   DEBUG: [cdART Manager] -               resizeondownload: false
17:34:07  36.081680 T:1586795552   DEBUG: [cdART Manager] -                      unmatched: 0
17:34:07  36.081966 T:1586795552   DEBUG: [cdART Manager] -                   unrecognized: 0
17:34:07  36.082088 T:1957679664   DEBUG: ------ Window Init () ------
17:34:07  36.082253 T:1586795552   DEBUG: [cdART Manager] -             update_musicbrainz: true
17:34:07  36.082554 T:1586795552   DEBUG: [cdART Manager] -                use_musicbrainz: true
17:34:07  36.082886 T:1586795552   DEBUG: [cdART Manager] - sys.argv[0]:
17:34:08  36.097267 T:1586795552  NOTICE: [cdART Manager] - Addon Work Folder: /home/osmc/.kodi/userdata/addon_data/script.cdartmanager/
17:34:08  36.097683 T:1586795552  NOTICE: [cdART Manager] - Addon Database: /home/osmc/.kodi/userdata/addon_data/script.cdartmanager/l_cdart.db
17:34:08  36.097862 T:1586795552  NOTICE: [cdART Manager] - Addon settings: /home/osmc/.kodi/userdata/addon_data/script.cdartmanager/settings.xml
17:34:08  36.097992 T:1666937888   DEBUG: RunQuery took 4 ms for 0 items query: select * from musicvideo_view  WHERE ((musicvideo_view.playCount IS NULL OR musicvideo_view.playCount < 1))
17:34:08  36.098225 T:1586795552  NOTICE: [cdART Manager] - Addon Work Folder Found, Checking For Database
17:34:08  36.098709 T:1586795552  NOTICE: [cdART Manager] - Addon Db Found, Checking Database Version
17:34:08  36.099010 T:1586795552  NOTICE: [cdART Manager] - Looking for database version: 3.0.3
17:34:08  36.107506 T:1957679664   DEBUG: ------ Window Deinit () ------
17:34:08  36.109230 T:1957679664   DEBUG: ------ Window Init () ------
17:34:08  36.112411 T:1586795552  NOTICE: [cdART Manager] - Database matched
17:34:08  36.148643 T:1658549280   DEBUG: RunQuery took 5 ms for 0 items query: select * from musicvideo_view
17:34:08  36.151772 T:1666937888   DEBUG: RunQuery took 7 ms for 0 items query: select * from movie_view  WHERE (movie_view.idFile  IN (SELECT DISTINCT idFile FROM bookmark WHERE type = 1))
17:34:08  36.153076 T:1658549280   DEBUG: Skin Widgets: Total time needed to request recommended queries: 0:00:00.746594
17:34:08  36.214989 T:1658549280   DEBUG: RunQuery took 23 ms for 90 items query: select * from movie_view  WHERE ((movie_view.playCount IS NULL OR movie_view.playCount = 0))
17:34:08  36.216213 T:1666937888   DEBUG: RunQuery took 22 ms for 0 items query: SELECT * FROM tvshow_view  WHERE ((CASE WHEN COALESCE(tvshow_view.totalCount - tvshow_view.watchedcount, 0) > 0 THEN 0 ELSE 1 END  < 1)) AND ( ((tvshow_view.watchedcount > 0 AND tvshow_view.watchedcount < tvshow_view.totalCount) OR (tvshow_view.watchedcount = 0 AND EXISTS (SELECT 1 FROM episode_view WHERE episode_view.idShow = tvshow_view.idShow AND episode_view.resumeTimeInSeconds > 0))))
17:34:08  36.233124 T:1666937888   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strReleaseType = 'album'
17:34:08  36.235714 T:1666937888   DEBUG: GetAlbumsByWhere - query took 2 ms
17:34:08  36.270237 T:1666937888   DEBUG: JSONRPC: Value does not match any of the enum values in type field
17:34:08  36.270504 T:1666937888   DEBUG: JSONRPC: Invalid property "field" in type List.Filter.Rule.MusicVideos
17:34:08  36.272121 T:1666937888   DEBUG: CFavourites::Load - no system favourites found, skipping
17:34:08  36.272499 T:1666937888   DEBUG: CFavourites::Load - no userdata favourites found, skipping
17:34:08  36.273506 T:1666937888   DEBUG: Library Data Provider: Total time needed for all queries: 0:00:05.332869
17:34:08  36.730751 T:1658549280   DEBUG: RunQuery took 41 ms for 330 items query: select * from episode_view  WHERE ((episode_view.playCount IS NULL OR episode_view.playCount < 1))
17:34:09  37.124954 T:1658549280   DEBUG: RunQuery took 3 ms for 0 items query: select * from musicvideo_view
17:34:09  37.137783 T:1658549280   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strReleaseType = 'album'
17:34:09  37.139809 T:1658549280   DEBUG: GetAlbumsByWhere - query took 2 ms
17:34:09  37.139954 T:1658549280   DEBUG: DatabaseUtils::GetSortFieldList: unknown field 36
17:34:09  37.162914 T:1658549280   DEBUG: Skin Widgets: Total time needed to request recent items queries: 0:00:01.009454
17:34:09  37.163219 T:1658549280   DEBUG: Skin Widgets: Total time needed for all queries: 0:00:13.543914
17:34:10  38.170208 T:1957679664   DEBUG: ------ Window Init (/home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/skins/Default/720p/script-cdartmanager.xml) ------
17:34:10  38.170536 T:1957679664    INFO: Loading skin file: /home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/skins/Default/720p/script-cdartmanager.xml, load type: LOAD_ON_GUI_INIT
17:34:10  38.346611 T:1957679664   DEBUG: POParser: loaded 191 strings from file /home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/language/English/strings.po
17:34:10  39.074348 T:1957679664   DEBUG: Previous line repeats 139 times.
17:34:10  39.074516 T:1957679664   DEBUG: CGUIMediaWindow::GetDirectory ()
17:34:10  39.074596 T:1957679664   DEBUG:   ParentPath = []
17:34:12  40.341358 T:1586795552  NOTICE: [cdART Manager] - # Setting up Script
17:34:12  40.341961 T:1586795552  NOTICE: [cdART Manager] - Addon Db found - Loading Counts
17:34:12  40.342121 T:1586795552   DEBUG: [cdART Manager] - Counting Local Artists, Albums and cdARTs
17:34:12  40.592991 T:1586795552   DEBUG: [cdART Manager] - Recounting cdARTS
17:34:12  40.598286 T:1586795552  NOTICE: [cdART Manager] - Refreshing Counts
17:34:12  40.679890 T:1586795552   DEBUG: [cdART Manager] - Retrieving Local Album Artists from Database
17:34:12  40.695744 T:1586795552   DEBUG: Previous line repeats 1 times.
17:34:12  40.696011 T:1586795552  NOTICE: [cdART Manager] - Checking for new Artwork on fanart.tv since last run...
17:34:12  40.708004 T:1586795552   DEBUG: [cdART Manager] - Retrieving HTML Source
17:34:12  40.708385 T:1586795552   DEBUG: [cdART Manager] - Fetching URL: http://api.fanart.tv/webservice/newmusic/e308cc6c6f76e502f98526f1694c62ac/1447694682/
17:34:12  40.710785 T:1586795552   DEBUG: [cdART Manager] - Retrieving online source
17:34:13  41.384254 T:1586795552   DEBUG: [cdART Manager] - HTML Source:
                                            <!DOCTYPE html>
                                            <html xmlns="http://www.w3.org/1999/xhtml">
                                            <head>
                                            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                                                <title>Database Error</title>
                                            
                                            </head>
                                            <body>
                                                <h1>Error establishing a database connection</h1>
                                            </body>
                                            </html>
17:34:13  41.384655 T:1586795552  NOTICE: [cdART Manager] - New Artwork found on fanart.tv
17:34:13  41.384933 T:1586795552   ERROR: Traceback (most recent call last):
17:34:13  41.385098 T:1586795552   ERROR:   File "/home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/lib/fanarttv_scraper.py", line 277, in check_fanart_new_artwork
17:34:13  41.388069 T:1586795552   ERROR:     data = simplejson.loads( htmlsource )
17:34:13  41.388252 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
17:34:13  41.389225 T:1586795552   ERROR:     return _default_decoder.decode(s)
17:34:13  41.389366 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
17:34:13  41.390373 T:1586795552   ERROR:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
17:34:13  41.390526 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
17:34:13  41.390720 T:1586795552   ERROR:     raise ValueError("No JSON object could be decoded")
17:34:13  41.390884 T:1586795552   ERROR: ValueError: No JSON object could be decoded
17:34:14  42.497673 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:14  42.497952 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:14  42.774082 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:14  42.774467 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:14  43.057476 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:14  43.057865 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:15  43.290760 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:15  43.291042 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:15  43.574104 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:15  43.574535 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:15  44.074039 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:15  44.074390 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:17  45.890720 T:1957679664   DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0
17:34:17  45.897610 T:1957679664   DEBUG: OnKey: right (0xf083) pressed, action is Right
17:34:19  47.511818 T:1957679664   DEBUG: Keyboard: scancode: 0x69, sym: 0x0114, unicode: 0x0000, modifier: 0x0
17:34:19  47.512077 T:1957679664   DEBUG: OnKey: left (0xf082) pressed, action is Left
17:34:19  47.974010 T:1957679664   DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
17:34:19  47.974422 T:1957679664   DEBUG: OnKey: up (0xf080) pressed, action is Up
17:34:20  48.831421 T:1957679664   DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
17:34:20  48.831684 T:1957679664   DEBUG: OnKey: up (0xf080) pressed, action is Up
17:34:21  49.157398 T:1957679664   DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
17:34:21  49.157784 T:1957679664   DEBUG: OnKey: up (0xf080) pressed, action is Up
17:34:21  49.391193 T:1957679664   DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
17:34:21  49.391602 T:1957679664   DEBUG: OnKey: up (0xf080) pressed, action is Up
17:34:21  49.623943 T:1957679664   DEBUG: Keyboard: scancode: 0x67, sym: 0x0111, unicode: 0x0000, modifier: 0x0
17:34:21  49.624222 T:1957679664   DEBUG: OnKey: up (0xf080) pressed, action is Up
17:34:22  50.746895 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:22  50.747162 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:23  51.620537 T:1957679664   DEBUG: Keyboard: scancode: 0x6a, sym: 0x0113, unicode: 0x0000, modifier: 0x0
17:34:23  51.620853 T:1957679664   DEBUG: OnKey: right (0xf083) pressed, action is Right
17:34:24  52.424877 T:1957679664   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
17:34:24  52.425140 T:1957679664   DEBUG: OnKey: down (0xf081) pressed, action is Down
17:34:25  53.124031 T:1957679664   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
17:34:25  53.124569 T:1957679664   DEBUG: OnKey: return (0xf00d) pressed, action is Select
17:34:25  53.999912 T:1957679664   DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
17:34:25  54.000233 T:1957679664   DEBUG: OnKey: return (0xf00d) pressed, action is Select
17:34:25  54.006100 T:1586795552   DEBUG: [cdART Manager] - Autodownload
17:34:25  54.006424 T:1586795552   DEBUG: DialogProgress::StartModal called
17:34:25  54.006527 T:1586795552   DEBUG: ------ Window Init (DialogProgress.xml) ------
17:34:25  54.006607 T:1586795552    INFO: Loading skin file: DialogProgress.xml, load type: KEEP_IN_MEMORY
17:34:25  54.036964 T:1586795552  NOTICE: [cdART Manager] - Artist: The 1975                                 Local ID: 2            Distant MBID: 5b6ebfe0-f72b-4902-bba9-74c8af0f1af0
17:34:25  54.037628 T:1586795552   DEBUG: [cdART Manager] - Finding remote fanart
17:34:25  54.037811 T:1586795552   DEBUG: [cdART Manager] - Retrieving artwork for artist id: 5b6ebfe0-f72b-4902-bba9-74c8af0f1af0
17:34:25  54.037960 T:1586795552   DEBUG: [cdART Manager] - Retrieving HTML Source
17:34:25  54.038101 T:1586795552   DEBUG: [cdART Manager] - Fetching URL: http://api.fanart.tv/webservice/artist/e308cc6c6f76e502f98526f1694c62ac/5b6ebfe0-f72b-4902-bba9-74c8af0f1af0/json/all/2/2
17:34:26  54.511234 T:1586795552   DEBUG: [cdART Manager] - HTML Source:
                                            <!DOCTYPE html>
                                            <html xmlns="http://www.w3.org/1999/xhtml">
                                            <head>
                                            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                                                <title>Database Error</title>
                                            
                                            </head>
                                            <body>
                                                <h1>Error establishing a database connection</h1>
                                            </body>
                                            </html>
17:34:26  54.511795 T:1586795552   ERROR: Traceback (most recent call last):
17:34:26  54.511986 T:1586795552   ERROR:   File "/home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/lib/fanarttv_scraper.py", line 180, in retrieve_fanarttv_json
17:34:26  54.512295 T:1586795552   ERROR:     data = simplejson.loads( htmlsource )
17:34:26  54.512459 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
17:34:26  54.512634 T:1586795552   ERROR:     return _default_decoder.decode(s)
17:34:26  54.512741 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
17:34:26  54.512897 T:1586795552   ERROR:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
17:34:26  54.513382 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
17:34:26  54.513641 T:1586795552   ERROR:     raise ValueError("No JSON object could be decoded")
17:34:26  54.513870 T:1586795552   ERROR: ValueError: No JSON object could be decoded
17:34:26  54.514370 T:1586795552  NOTICE: [{'backgrounds': []}, {'clearlogo': []}, {'artistthumb': []}, {'hdlogo': []}, {'banner': []}, {'artwork': []}]
17:34:26  54.514759 T:1586795552   DEBUG: [cdART Manager] - Artist Match not found
17:34:26  54.515186 T:1586795552  NOTICE: [cdART Manager] - Artist: The 2 Bears                              Local ID: 1            Distant MBID: 61c156ae-25ab-4df5-923b-087208d0a92d
17:34:26  54.515842 T:1586795552   DEBUG: [cdART Manager] - Finding remote fanart
17:34:26  54.516163 T:1586795552   DEBUG: [cdART Manager] - Retrieving artwork for artist id: 61c156ae-25ab-4df5-923b-087208d0a92d
17:34:26  54.516361 T:1586795552   DEBUG: [cdART Manager] - Retrieving HTML Source
17:34:26  54.516651 T:1586795552   DEBUG: [cdART Manager] - Fetching URL: http://api.fanart.tv/webservice/artist/e308cc6c6f76e502f98526f1694c62ac/61c156ae-25ab-4df5-923b-087208d0a92d/json/all/2/2
17:34:26  55.042358 T:1586795552   DEBUG: [cdART Manager] - HTML Source:
                                            <!DOCTYPE html>
                                            <html xmlns="http://www.w3.org/1999/xhtml">
                                            <head>
                                            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                                                <title>Database Error</title>
                                            
                                            </head>
                                            <body>
                                                <h1>Error establishing a database connection</h1>
                                            </body>
                                            </html>
17:34:26  55.042828 T:1586795552   ERROR: Traceback (most recent call last):
17:34:26  55.042992 T:1586795552   ERROR:   File "/home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/lib/fanarttv_scraper.py", line 180, in retrieve_fanarttv_json
17:34:26  55.043236 T:1586795552   ERROR:     data = simplejson.loads( htmlsource )
17:34:26  55.043400 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
17:34:26  55.043564 T:1586795552   ERROR:     return _default_decoder.decode(s)
17:34:26  55.043674 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
17:34:26  55.043846 T:1586795552   ERROR:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
17:34:26  55.043980 T:1586795552   ERROR:   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
17:34:26  55.044140 T:1586795552   ERROR:     raise ValueError("No JSON object could be decoded")
17:34:26  55.044460 T:1586795552   ERROR: ValueError: No JSON object could be decoded
17:34:26  55.044746 T:1586795552  NOTICE: [{'backgrounds': []}, {'clearlogo': []}, {'artistthumb': []}, {'hdlogo': []}, {'banner': []}, {'artwork': []}]
17:34:26  55.044979 T:1586795552   DEBUG: [cdART Manager] - Artist Match not found
17:34:26  55.073002 T:1586795552   DEBUG: [cdART Manager] - Counting Local Artists, Albums and cdARTs
17:34:26  55.075687 T:1586795552   DEBUG: [cdART Manager] - Recounting cdARTS
17:34:26  55.080269 T:1586795552  NOTICE: [cdART Manager] - Refreshing Counts
17:34:27  55.272476 T:1957679664   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
17:34:36  64.440353 T:1616606240   DEBUG: Thread JobWorker 1616606240 terminating (autodelete)
17:34:36  64.440926 T:1595184160   DEBUG: Thread JobWorker 1595184160 terminating (autodelete)
17:34:36  64.601685 T:1570018336   DEBUG: Thread JobWorker 1570018336 terminating (autodelete)
17:34:42  70.312767 T:1936716832   DEBUG: CAESinkPi:Drain delay:99ms now:0ms
17:34:42  70.667145 T:1957679664   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-arm.so)
17:34:42  70.667366 T:1957679664   DEBUG: Unloading: /ImageLib-arm.so
17:34:52  80.313141 T:1936716832   DEBUG: CAESinkPi:Deinitialize
17:34:52  80.313789 T:1936716832   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
17:34:52  80.326630 T:1936716832   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.audio_render handle 0x73807a08
17:34:52  80.617065 T:1683715104   DEBUG: script.module.osmcsetting.updates :  - blurp 881 - /home/osmc/.kodi/addons/script.cdartmanager-Helix/resources/skins/Default/720p/script-cdartmanager.xml

osmc@osmc:~/.kodi/temp$


Any ideas?
Smile
Currently the "old" API remains down on fanart.tv, so this is the only somewhat functional version, but be warned, it doesn't work really stable yet, read the last few posts/pages.

Github: https://github.com/stefansielaff/script....er/tree/NG
Direct download: https://github.com/stefansielaff/script....ive/NG.zip

I'll leave the Helix branch "as is" for now because it will work again if they restore the old API.
(2015-11-16, 20:43)stef.an Wrote: Currently the "old" API remains down on fanart.tv, so this is the only somewhat functional version, but be warned, it doesn't work really stable yet, read the last few posts/pages.

Github: https://github.com/stefansielaff/script....er/tree/NG
Direct download: https://github.com/stefansielaff/script....ive/NG.zip

I'll leave the Helix branch "as is" for now because it will work again if they restore the old API.

Thanks, that would explain the issues I was seeing Smile

I'll take those files and try them out.... Not fussed if its' not stable, I'm only experimenting and playing around with Kodi at the moment, thought i'd try it out with my Pi, seems pretty good..... Thanks for all the script work you've been doing; your code changes are nice and tidy, and lots of useful debug Smile
(2015-11-16, 20:43)stef.an Wrote: Currently the "old" API remains down on fanart.tv, so this is the only somewhat functional version, but be warned, it doesn't work really stable yet, read the last few posts/pages.

Github: https://github.com/stefansielaff/script....er/tree/NG
Direct download: https://github.com/stefansielaff/script....ive/NG.zip

I'll leave the Helix branch "as is" for now because it will work again if they restore the old API.

You have truncated links there stef.an.

Wink

While i'm here, when you get chance, could you have a look at the "Backup cdART Files function" please? It doesn't seem to respect the setting "Replace illegal characters in folders/Filenames" setting if enabled.

For example, I store all additional artwork away from the music library to keep those folders clean. I have the following:

.../cdART Folder (Artwork)

and

.../cdART Folder (Backups)

...as target folders for artwork. For the artist "W.A.S.P." (Note: the trailing period) the Artist folder becomes W.A.S.P_ in the "Artwork" folder, but is stored in the "backups" folder as W.A.S.P. which Windows cannot handle. It then thinks the folder is a file, and I am unable to do anything with it. Quite often the folder name will end up being named with random characters, but is still undeletable or cannot be manipulated.

TIA.

Good work so far btw. Tidy Dialog boxes FTW!!!

Wink

Dan/Gib.
Image
I cleaned out the cdART folder, uninstalled the old addon and installed you new version supporting the new fanart.tv API.... Seems to work ok, fanart has been downloaded Smile

However, I just wanted to ask where the disc art should be? the cdART manager has not downloaded any disc art, here's an example of what's been downloaded for an artist:

Code:
cdART (directory)
  |
  |--Artist (directory)
       |--banner.jpg
       |--fanart.jpg
       |--logo.jpg
       |--extrafanart (directory)
            |--image1.jpg
            |--image2.jpg
            |--(and so on)


Looking at the wiki, i was expecting to see a disc.png file for each album, but there is no such indication.... Am I missing some directories (i.e. album specific directories)?

It appears none of the album covers have been downloaded either.... By the way, my cdart directory is not the same as where my music media is.

Thanks.
CdArt and Album cover get saved in the CD folder, where the mp3 are
(2015-11-13, 00:27)stef.an Wrote: Hello jiquem, this usually means you don't have any Music in your library. Is Kodi music running in library mode and have you scanned for music?

Jumpy73, the explanation is simple: You've just encountered a bug in the code which I've fixed now. (Everything after 20:08:46 has nothing to do with cdART Manager)
Please download the new release and report back if it works, thanks!

For the others... I've just reprogrammed the caching mechanisms which I think didn't work for a looooong time (at least it didn't work since i got to know XBMC...).
Now every dataset is downloaded only once from fanart.tv and then reused.
This really speeds up things but you might miss somethign if art gets updated! You can "reset" the cache by using "Refresh fanart.tv data", I'll refine this later.

I'm slowly starting to understand python (though I'll NEVER like it) and what the script is doing. We'll see what's the future of this script Smile

Hello,

As junglist_matty said in his post the cdART manager has not downloaded any disc art, nothing happened when we try to make the automatically cdart downloaded. Only that way don’t work !!! I have Kodi 15.2 Isengard.
Did you have a way to resolve this problem Thanks a lot for your help.Big Grin
meowmoo already gave the answer to junglist_matty, disc related art is always stored in the disc's directory and will only work if you organize your albums in an adequate folder structure (read the very first page of this thread).

In the meanwhile I finally found out that *I* can't really support cdART Manager until I completely understand what it does in which circumstances.

So I've decided to dig into it and currently I'm reorganizing the complete plugin. I'll use the "NG" branch for this and whenever I feel I have a more or less "stable" version I'll push a new release to github - which will then be "mine" and I'll be able to "support" it to a certain degree (mind the quotes Wink)
I'm doing my best to fix some bugs but I'm very sure I'll introduce some new because as it looks now there won't be that many lines of old code left afterwards. Also I've already dropped some functionality (e.g. custom colors) and be warned, maybe the new release will miss some functions you use. You should decide from scratch if you want to install my version, because you really have to trust me if you do so Big Grin
I'm just glad you're actively working on this addon. I know when you reported that the scraper source updated their api that your addon was broke. So I've been patiently waiting to go back at it. I for one am willing to wait for a more polished version that you know works the way you intend it, rather than dealing with a buggy program. Just keep us up to date!
If I understand the way the existing cdART Manager version works correctly, the main reason it uses a separate database is for the storage of MBID's (if found/matched). It might be faster therefore to get rid of the cdART Manager database and inject the MBID values directly into Kodi's own database. Not only would this save time during the scanning stage, it would also help those of us who have multiple systems running MySQL/MariaDB where currently we have to either copy cdART Manager's database or rebuild it on each system we might want to run the addon with. That's not possible at the moment, but I'm assuming here that 'Jarvis' will have a relevant field (or fields) in the database for artist MBID's which can be manipulated which isn't currently the case.

I don't see the need for a database just for storage of previously downloaded artwork. The folders / library itself can be queried to see what has artwork of each type present, and what is missing, in addition to using the missing.txt file that can already be created on each run.

Just an idea.
Image
You're right, as far as I've read there's no way to get the MBID into the database via the RPC API yet. Hopefully this will be changed with Jarvis or (even better) the default scraper adds the MBID on standard library updates, which is currently possible by tagging (no option for me) or NFO-files. .nfo could be an option but I think there are quite a few people who want to keep their music directories tidy.
As far as I understand it (and I could be wrong here), but reading between the lines, Jarvis is going to add support for the MusicBrainz 'ARTIST' tag, which I assume would add the relevant MBID's directly to the Kodi music library database, i.e on the first scrape as a pose to updates. Up till now this hasn't been possible, hence the reason cdART manager created it's own Db. But by doing that, it essentially requires the equivalent of 3 complete scans of the library. Once to add the tracks to Kodi, a second time to add those same tracks to cdART Manager's database, and then a 3rd time if you have 'check MBID's to be current' enabled.

I would of thought, with Jarvis supporting MBID's for artist, parts 1 and 3 will be performed during the initial library scan, hence removing the need for step 2 altogether. Some are going to use NFO's regardless. I'm pretty sure Universal Artist/Album scraper used MusicBrainz as a metadata source, so with this in mind it shouldn't be necessary for any external tagging to get support for MBIDs. However I did read somewhere that MusicBrainz has a limit on the number of requests performed against it's Db to prevent DDoS-like activity, whether that applies to people with accounts on MusicBrainz or not I don't know.

On a different note, I'd welcome the ability to exclude certain folders from cdART Manager scanning, as I have some albums (anime, game soundtracks,etc) that will never appear on MusicBrainz, so processing them is a waste of time. I have several root level folders set up in order to segregate these categories of music from the 'regular' albums for identification purposes among other things. For me it would probably greatly reduce the length of time spent on library scans. Not a priority request, just something that cdART Manager currently lacks.

Smile
Image
Okay - I'll keep that in mind Smile
You're right, musicbrainz is limited to 1 request per second, one at a time. This is a really low rate nowadays and the response times of their service ist slow. I hope one of the bigger players will offer them a caching service some day.
Currently I'm experimenting with a file based datastore instead of the database. The "business developer" inside me tells me a database is the only way to go but in fact the amount of data we are talking about is rather small.
The file based storage would make it much easier to manipulate content for the average user without the need for an interface (while I would create interfaces for the commonly used functions like exclude from scan). A migration would be easy whenever Kodi implements real support for MBID's.

I currently have about 1000 true albums and (with "All Artists" disabled) some hundred artists. This could be easily handled by a raspberry pi with a normal sd card as storage.
About how many Artists/Albums do you have here?
I'm not sure without checking, and since I recently wiped my databases due to some changes I've made in my path structure I can't really tell you right now. What I can tell you is that in terms of 'tracks' I have 30,000 (approx) of all categories. Which takes some time to add to the library regardless of which scraper is used. AudioDB is currently faster as it doesn't check for (and choke on) the MBID's as far as I can tell, but using either scraper on a new library scan takes a considerable amount of time. When I get chance I'll PM you the stats for the scanned library if you wish.
Image
Quote:I assume would add the relevant MBID's directly to the Kodi music library database,

the MBID is in the v15 KodiDB also, strMusicBrainzAlbumID, strMusicBrainzArtistID.

but I tag my mp3's with MB picard, so the MBID is in all my mp3s also, maby that's the reason...



I just installed and tested the latest version from stef.an, works fine, no issues so far, and much much faster when hitting the DL all cdArt/cover/banner Button (688 cd's, lots of artists)
  • 1
  • 151
  • 152
  • 153(current)
  • 154
  • 155
  • 157

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