Kodi Community Forum

Full Version: No movie/tv images show in (any) web interface
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
OS: Linux
XBMC Gotham 13.0

Not sure when this started, but as the post title says, no images - aside from UI images such as
load in any web interface. I've tried fresh install, first with the old .nfo's (that were exported through the Video-preference pane) and when it still didn't work I removed those and did a new fresh install + scrape. I've tried both Firefox and Safari with the same result.

I'm using the Universal Movie Scraper for movies and TVDB for TV, and all images/posters/fanart show just fine in XBMC itself.

After enabling debugging, I restarted XBMC and did a refresh on the web page. The debug log can be found here: http://xbmclogs.com/show.php?id=197079

Using the network inspector in Firefox, I can see that it tries to load

Opening that URL in the browser gives "File not found".

Using the texturecache.py utility, this is what I find:
~ $ ./texturecache.py s fHBz5EnvLWkW2blBlWpk9M4fGVC.jpg
006505|9/9cc18d1a.jpg|0720|0486|0001|2014-05-09 16:53:10|                   |http://d3gtl9l2a4fn1j.cloudfront.net/t/p/original/fHBz5EnvLWkW2blBlWpk9M4fGVC.jpg
Matching row ids: 6505

~ $ find .xbmc -name 9cc18d1a.jpg

~ $ file .xbmc/userdata/Thumbnails/9/9cc18d1a.jpg
.xbmc/userdata/Thumbnails/9/9cc18d1a.jpg: JPEG image data, JFIF standard 1.01

Looking at the HTML for a movie, it shows:
<div class="inner"><img alt="(500) Days of Summer" src="image/image://http%253a%252f%252fd3gtl9l2a4fn1j.cloudfront.net%252ft%252fp%252foriginal%252f5SjtNPD1bb182vzQccvEUpXHFjN.jpg/"></div>

and texturecache.py:
~ $ ./texturecache.py j movies "500"
    "art": {
      "banner": "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f19913%2fmoviebanner%2f500-days-of-summer-51a86122e613d.jpg/",
      "clearart": "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f19913%2fhdmovieclearart%2f500-days-of-summer-52072641b19a3.png/",
      "clearlogo": "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f19913%2fhdmovielogo%2f500-days-of-summer-51f2109d654f3.png/",
      "discart": "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f19913%2fmoviedisc%2f500-days-of-summer-52e9ac1f89f47.png/",
      "fanart": "image://http%3a%2f%2fd3gtl9l2a4fn1j.cloudfront.net%2ft%2fp%2foriginal%2fwjnvCroLmiHF7r7yEPbAXYP9tpW.jpg/",
      "landscape": "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f19913%2fmoviethumb%2f500-days-of-summer-51a86138102cd.jpg/",
      "poster": "image://http%3a%2f%2fd3gtl9l2a4fn1j.cloudfront.net%2ft%2fp%2foriginal%2f5SjtNPD1bb182vzQccvEUpXHFjN.jpg/"
    "file": "/media/Movies/500.Days.Of.Summer.BDRip.XviD-ARiGOLD/arigold-dos-xvid.avi",
    "label": "(500) Days of Summer",
    "movieid": 6,
    "title": "(500) Days of Summer"

Does anyone have any ideas? Because I can't think of anything else to try.

Any and all input welcome.

Thanks in advance.
I second this,, same problem.

- Upgraded Frodo to Gothem (full wipe of userfolder)
- After install and config no remote art/textures
- Local art and textures work fine

Arch Linux + Gothem
Which web interfaces have you tried?
Wow thats fast at this hour Smile

Visual X

And my usual remotes..

Like i said. Locally in XBMC everything works amazing like always...
But webinterfaces and remotes get everything but textures
Hmm, I'm also running Arch. Are you running it with xinit as user xbmc or in a "real" X user session?

I tried reverting back to some old Gotham beta versions (and wiped userdata) but still no go. Also restored a backup of my frodo data and installed Frodo, but even there, where it used to work, do I get "File not found" on all movie/tv textures.

The only way I've managed to get a poster to show at all is to take the link to the poster, for example:
and change it to:

I have exactly the same problem since my upgrade to gotham.

The image url seems to be double encoded. If you decode the url just once, it work.
ie: If you transform http://plonk:8080/image/image%3A%2F%2Fhttp%253a%252f%252fcf2.imgobject.com%252ft%252fp%252foriginal%252ftOxDM9o4pSlonBubi4WDfQWwqxe.jpg%2F
(found in the default web interface) into :
It work.

It tried the default web interface and chorus.

I'm running XBMC 13 on Arch linux, in standalone (no window manager)

Did you manage to solve this problem ?
Yeah, the double encoding seems to be the problem. I tried changing default, Chorus and AWXi as follows, which made all of them display the images:

in /usr/share/xbmc/addons/webinterface.default/js/MediaLibrary.js
line 301:
return thumbnail ? ('image/' + encodeURI(thumbnail)) : xbmc.core.DEFAULT_ALBUM_COVER;
return thumbnail ? ('image/' + thumbnail) : xbmc.core.DEFAULT_ALBUM_COVER;

in addons/webinterface.awxi/js/lib.xbmc.js
line 254:
return '/image/' + encodeURI(url);
to from
return '/image/' + url;

in addons/webinterface.chorus/chorus.js
line 17052:
return app.settings.get('basePath', '/') + 'image/' + encodeURIComponent(rawPath);
return app.settings.get('basePath', '/') + 'image/' + rawPath;
and then copy chorus.js to chorus.min.js (or change in index.html to chorus.js)

That doesn't fix other apps of course, so for instance Maraschino won't display posters. What's odd is that seem to be happening for a select few users only, and all running Arch. I messed around a bit with the source and managed to get it working in all apps/interfaces without modifications, but that meant changing the JSON-RPC interface.

Any devs or anyone else have any ideas?
You are supposed to URI encode them. So you need to encode URLs that are already encoded. Is this a package from Arch linux?
Yeah, this is a package from Arch Linux.

Compilation options here: https://projects.archlinux.org/svntogit/...abd29a3694

I use the internal ffmpeg though.

After enabling webserver debug, this is what the log shows:
DEBUG: webserver: request received for /image/image://smb%253a%252f%252fETTAN%252fmedia%252fMOViES%252f2001.A.Space.Odyssey.1968%252fposter.jpg/

And adding some web console output to the web interface I get this:
input to getThumbUrl(url):
image://smb%3a%2f%2fETTAN%2fmedia%2fMOViES%2f2001.A.Space.Odyssey.1968%2fposter.jpg/" lib.xbmc.js:254

and the function returns:
"/image/image://smb%253a%252f%252fETTAN%252fmedia%252fMOViES%252f2001.A.Space.Odyssey.1968%252fposter.jpg/" lib.xbmc.js:255
Same Problem here (ArchlinuxARM), but jsonrpc also gives a 404 for some methods.
See http://forum.xbmc.org/showthread.php?tid=195166
Okay, so I'm pretty sure I've found the cause of the issue.

If I downgrade the latest (in Arch at least) libmicrohttpd version 0.9.35-1 to the earlier 0.9.34-1, everything works as it should again, at least in default webinterface, Chorus, AWXi and Maraschino. I'm too tired to look what changed between 0.9.34 and 0.9.35 but something obviously did.

Try downgrading and report back (you most likely an older version cached in /var/cache/pacman/pkg/).
I can confirm, that this helped to get the images back on chorus on archlinux Arm. the jsonrpc problem still persists for me on default webinterface....
Report it to the package maintainer and see what they say. Certainly seems weird to me.
Could this change in libmicrohttpd have something to do with it? From the 0.9.35 changelog:
Quote:Thu Apr 10 09:39:38 CEST 2014
Removed unescaping for URI path (#3371) as '+' should not
be converted to space in accordance with
and http://www.w3.org/TR/html401/interact/fo...-
Note that we now also no longer convert '#38;' to '&'; if needed,
the application needs to apply unescaping to the path of the URI
itself (before, MHD unescaped '#38;' but not '&amp;', so this
inconsistency was now resolved by simply not unescaping anything
before the first '&'). -CG

The reason for so few users having the problem would be that;
  • XBMC ships with an old version (0.4.5 from 2010 according to XBMC's Github repo) that is used unless you compile with the "--enable-external-libraries"-flag (?).
  • The latest version of libmicrohttpd, 0.9.35 (that introduced the problem), was released just over two weeks ago. Many distros might not have updated yet, and, according to the download section on their front page the latest version is 0.9.34.
Hi All,

Can someone help me with downgrading process. (libmicrohttpd version 0.9.35-1 to the earlier 0.9.34-1). I have tried several web interfaces in Frodo 12.3 and Gotham 13.0 and none would show contents, thumbnails etc. I would greatly appreciate your help.

ATV2 - Gotham 13.0
Pages: 1 2