FAQ  •  Register  •  Login

thumbnail URLs with spaces in the file names

<<

ttguy

Serviio lover

Posts: 63

Joined: Sun May 27, 2012 10:52 am

Post Tue Oct 09, 2012 8:03 am

thumbnail URLs with spaces in the file names

Serviio fails to load a thumbnail URL like this
http://videocdn.sbs.com.au/u/video/SBS_ ... 180/S2137M farewell.jpg

But if I paste it into my browser it does work

as I paste it into the browser chrome automatically replaces the space in the file name with the %20

http://videocdn.sbs.com.au/u/video/SBS_ ... rewell.jpg

So who's job is it to encode spaces in URL file names? My plugin or serviio when it trys to resolve the filenames? It would be better if it was the later because I would think this would be the same issue with all plugins.

  Code:
2,122 DEBUG [OnlineLibraryManager] Thumbnail http://videocdn.sbs.com.au/u/video/SBS_Production/125/180/S2137M farewell.jpg not in cache yet, loading it
2012-10-09 18:32:22,529 WARN  [FeedUpdaterThread] An error occured while retrieving thumbnail, will remove it from the item the and will continue
org.serviio.library.online.CannotRetrieveThumbnailException: Failed to download thumbnail http://videocdn.sbs.com.au/u/video/SBS_Production/125/180/S2137M farewell.jpg.
   at org.serviio.library.online.OnlineLibraryManager.findThumbnail(OnlineLibraryManager.java:266)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:107)
Caused by: java.io.FileNotFoundException: http://videocdn.sbs.com.au/u/video/SBS_Production/125/180/S2137M farewell.jpg
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
   at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:72)
   at org.serviio.library.online.OnlineLibraryManager.findThumbnail(OnlineLibraryManager.java:258)
   ... 1 more
--
linux/Humax HDR-3000T
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 09, 2012 8:43 pm

Re: thumbnail URLs with spaces in the file names

Space is not valid in URL, therefore the plugin should provide a valid URL. I want to leave it up to the plugin dev to provide a complete URL, so that they can test it and build the plugin to the required spec and Serviio doesn't screw that up further down the line.
<<

ttguy

Serviio lover

Posts: 63

Joined: Sun May 27, 2012 10:52 am

Post Tue Oct 09, 2012 8:53 pm

Re: thumbnail URLs with spaces in the file names

Fair enough.
--
linux/Humax HDR-3000T

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.