Actions
Bug #661
closedVideoLib is failing to retrieve poster art
Status:
Closed
Priority:
Immediate
Assignee:
Category:
Database
Target version:
Start date:
09 Aug 2018
Due date:
% Done:
100%
Estimated time:
Severity:
05 - Very Low
Description
Here is a sample log.
18089:164118.006 [ Timer-4] INFO TVDB Request URL: http://thetvdb.com/banners/episodes/260315/4880309.jpg 18089:164118.023 [ Timer-4] ERROR TVDB Error making HTTP request: image == null! java.lang.IllegalArgumentException: image == null! at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(ImageTypeSpecifier.java:925) at javax.imageio.ImageIO.getWriter(ImageIO.java:1592) at javax.imageio.ImageIO.write(ImageIO.java:1520) at com.ximba.videolib.TVDB.requestImage(TVDB.java:504) at com.ximba.videolib.TVDB.updateEntry(TVDB.java:547) at com.ximba.videolib.TVDB.queryDB(TVDB.java:572) at com.ximba.videolib.UI$ScanTV.run(UI.java:299) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
Which appears to be this bit of code:
URL url = new URL(urlStr); BufferedImage image = ImageIO.read(url); if ( ImageIO.write(image, "png", new File( fileName ) ) ) return; else log.error("Failed write - no image appropriate write available.");
So either the "new URL" fails to generate a proper URL for ImageIO or ImageIO.read() has change syntax or something.
Actions