Pimp1310 1 Posted March 21, 2021 Posted March 21, 2021 hello, i tried to request over the json api of kodi to get the fanart of a current playing media. according to kodi rpc wiki the answer to the request should look like this "tvshow.fanart": "image://nfs%3a%2f%2fCUBER%2fmedia%2fpreserved%2fTVShows%2fV%20(2009)%2ffanart.jpg/", this is what i get with EXACT the same request "tvshow.fanart": "image://http%3a%2f%2f127.0.0.1%3a57578%2f44706%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3d7273c77065e8d1761f9d9aae042e67e6/", how can I access the fanart? I've been trying for hours Thank You
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 (edited) The example with NFS is native mode. the http is addon mode. "image://http%3a%2f%2f127.0.0.1%3a57578%2f44706%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3d7273c77065e8d1761f9d9aae042e67e6/", seems correct. Here is an example from my Kodi DB: http://127.0.0.1:57578/944665/Images/Backdrop/0?EnableImageEnhancers=True&Tag=d7b780f0ed288afcf1767b4ac5a28718 So decode %3a%2f%2f = "://" etc. and it should work. As a test, drop the actual (decoded link) into a browser WHEN Kodi is RUNNING Edited March 21, 2021 by quickmic
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 (edited) 17 minutes ago, quickmic said: The example with NFS is native mode. the http is addon mode. "image://http%3a%2f%2f127.0.0.1%3a57578%2f44706%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3d7273c77065e8d1761f9d9aae042e67e6/", seems correct. Here is an example from my Kodi DB: http://127.0.0.1:57578/944665/Images/Backdrop/0?EnableImageEnhancers=True&Tag=d7b780f0ed288afcf1767b4ac5a28718 So decode %3a%2f%2f = "://" etc. and it should work. As a test, drop the actual (decoded link) into a browser WHEN Kodi is RUNNING i tried everything my kodi IP = 192.168.0.164:8023 i tried http://192.168.0.164%3a57578%2f44706%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3d7273c77065e8d1761f9d9aae042e67e6/ or http://192.168.0.164%3a8023%2f44706%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3d7273c77065e8d1761f9d9aae042e67e6/ or http://192.168.0.164:57578/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1 or http://192.168.0.164:8023/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1 but nothing Edited March 21, 2021 by Pimp1310
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 Don't use 192.168.0.164 Use 127.0.0.1. It's piped threw a socket, that's why kodi must be started.
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 And decode ALL data. :// was just an example. It should look like: http://127.0.0.1:57578/44706/Images/Backdrop/0?EnableImageEnhancers=True&Tag=7273c77065e8d1761f9d9aae042e67e6 I hope I decode it correctly (manually)
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 2 minutes ago, quickmic said: Don't use 192.168.0.164 Use 127.0.0.1. It's piped threw a socket, that's why kodi must be started. okay, i tried http://127.0.0.1:57578/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1/ or http://127.0.0.1:8023/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1/ in my browser, kodi is running, but i get a "website is not reachable"
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 both are wrong. Second is wrong port 8023 first is almost correct, but remove the "/" at the tail. http://127.0.0.1:57578/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 1 minute ago, quickmic said: https://www.urldecoder.org/ here is the unconverted fanart url image://http%3a%2f%2f127.0.0.1%3a57578%2f44712%2fImages%2fBackdrop%2f0%3fEnableImageEnhancers%3dTrue%26Tag%3da1bb61a46530de76b18b8b9e544f14b1/ and here my urldecoded http://127.0.0.1:57578/44712/Images/Backdrop/0?EnableImageEnhancers=True&Tag=a1bb61a46530de76b18b8b9e544f14b1 but NO luck, the browser shows always a error
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 Kodi running with installed emby-for kodi-next-gen plugin and connected?
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 (edited) 3 minutes ago, quickmic said: Kodi running with installed emby-for kodi-next-gen plugin and connected? of course, and i play a file. Edited March 21, 2021 by Pimp1310
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 (edited) hmm, than I don't know, sorry. It should work and works for me. You can install sqlite browser, open the kodi myvideo.db (art) and read the actual links from there. Maybe you find the issue. Edited March 21, 2021 by quickmic
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 3 minutes ago, quickmic said: hmm, than I don't know, sorry. It should work and works for me. You can install sqlite browser, open the kodi myvideo.db (art) and read the actual links from there. Maybe you find the issue. This can not be.... I've been busy here for hours do you also have kodi 19?
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 Just now, quickmic said: yes okay i try to open the database with sqlite
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 (edited) btw, I dropped: http://127.0.0.1:57578/944665/Images/Backdrop/0?EnableImageEnhancers=True&Tag=d7b780f0ed288afcf1767b4ac5a28718 It's just redirected to 192.168.0.207 and manually masked my token Edited March 21, 2021 by quickmic
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 11 minutes ago, quickmic said: btw, I dropped: http://127.0.0.1:57578/944665/Images/Backdrop/0?EnableImageEnhancers=True&Tag=d7b780f0ed288afcf1767b4ac5a28718 It's just redirected to 192.168.0.207 and manually masked my token why in your adress is "emby"? the path http://127.0.0.1:57578/20497/Images/Backdrop/0?EnableImageEnhancers=True&Tag=4e139f02e3dd7ff5f84a48b922c020ff and my browser
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 Quote why in your adress is "emby"? Not sure I understand you questions. That's the Emby-server API.
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 (edited) 127.0.0.1:57578 calls the Emby-next-gen socket which redirects to the actual Emby server URL and adds api keys etc. Edited March 21, 2021 by quickmic
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 1 minute ago, quickmic said: Not sure I understand you questions. That's the Emby-server API. look at my path, my path is on kodi. your path on emby. Just now, quickmic said: 127.0.0.1:57578 call the Emby-next-gen socket which redirects to the actual Emby server URL and adds api keys etc. when i call 127.0.ß.1:57578, i get a no website reachable
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 Do you query that URL from the same device Kodi is running? Otherwise it cannot work. If you use Windows desktop/laptop, install Kodi there with emby plugin.
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 Also try this version: https://github.com/MediaBrowser/plugin.video.emby/archive/refs/tags/5.2.03.0.zip use addon mode
Pimp1310 1 Posted March 21, 2021 Author Posted March 21, 2021 1 minute ago, quickmic said: Do you query that URL from the same device Kodi is running? Otherwise it cannot work. If you use Windows desktop/laptop, install Kodi there with emby plugin. no of course not. kodi runs on my shield, emby on my server. But it must be possible to open it from outside or from my windows pc or server, that's the point. that's why there is the Json RPC to access information from other devices
quickmic 1516 Posted March 21, 2021 Posted March 21, 2021 ok, then use the pattern of my (native) link, adapt it and try. Probably you need your API-Key/token, and NO it cannot help you with that. It's unique. Probably grab it from the Emby server UI when you play a video. btw, I'm afk now, based in Europe, and must work tomorrow
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now