evannap00 / romcollectionbrowser

Automatically exported from code.google.com/p/romcollectionbrowser
GNU General Public License v2.0
0 stars 0 forks source link

Gracefully Handle Remote Server Errors #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When importing, I get the error message "Could not create artwork file" every 
30 or so games. The actual error in the log is...

    10:27:04 T:4324  NOTICE: RCB_ERROR: Could not create file: 'Z:\Emulation\Assets\boxfront\Dragon-Ball Z - Super Butouden.jpg'. Error message: 'HTTP Error 503: Service Unavailable'

This is an error from the site it's trying to pull the image rather than a 
local error so it really shouldn't result in a blocking dialog error message in 
XBMC (especially when that stops it from processing any other games after that 
point until you manually intervene).

Errors like this should be logged but not result in a blocking error popup in 
XBMC as there's nothing the user can do about it.

Original issue reported on code.google.com by enve...@gmail.com on 22 Sep 2014 at 10:21

GoogleCodeExporter commented 8 years ago
The http://thegamesdb.net/ seems to be causing it, when I want to go to the 
site with my browser, I also get a 503 error. So the easy workaround should be 
not using the thegamesdb-scraper.

As an advance workaround, you can comment out line 1207 of 
\resources\lib\dbupdate.py to suppress the error dialog (it will still be 
logged in the xbmc.log).

Detailed:
1. Close XBMC
2. Go to the folder script.games.rom.collection.browser\resources\lib (in 
%Appdata%\XBMC\ on Windows)
3. Make a backup (copy) of the file dbupdate.py
4. Open the dbupdate.py file in any texteditor
5. Search for the following line and add a # at the front:
xbmcgui.Dialog().ok(util.localize(32012), util.localize(32011))

It should look like this:
#xbmcgui.Dialog().ok(util.localize(32012), util.localize(32011))

6. Save the file and open XBMC => No more "Could not create artwork file" 
errors :)

Original comment by bogimob...@gmail.com on 5 Oct 2014 at 8:09

GoogleCodeExporter commented 8 years ago
Do you need to also recompile or process the source file first somehow? I 
noticed there is a dbupdate.py and dbupdate.pyo binary file. 

Original comment by couch.po...@gmail.com on 28 Jul 2015 at 5:05