How to get database movie infos from python plugin?
#1
My movie database contains .strm files:

For example: 2 Guns (2013).strm
Code:
plugin://plugin.program.test/?imdbid=1272878

If the .strm file has started, the plugin play the movie. But the movie has no cover, no fanart and no other information. Is it possible to get these images and infos from the database movie to add these with listitem.setInfo()? Or is there a better way?
Reply
#2
No idea or is the question unclear?
Reply
#3
You can do that with script.module.metahandler. See http://forum.kodi.tv/showthread.php?tid=265193
Reply
#4
@pybquillast can you please explain? Does this add artwork and metadata to the player osd regardless of the way playback was launched (playlist, music, add-on, library, widget)?

Edit: I would love to learn more, because if it does, then I will add it to our emby for kodi add-on. I've been looking for a solution, forever. Thanks Smile
Reply
#5
(2016-03-29, 03:49)pybquillast Wrote: You can do that with script.module.metahandler. See http://forum.kodi.tv/showthread.php?tid=265193

I have tested this module, but it does not work:

Code:
from metahandler import metahandlers
md = metahandlers.MetaData()
print md.get_meta('movie', 'mad max fury road', year='2015')

Code:
10:26:32 T:8336  NOTICE: metahandler: Initializing MetaHandlers version: 2.9.0
10:26:32 T:8336  NOTICE: metahandler: Loading sqlite3 as DB engine version: 3.8.6
10:26:32 T:8336   ERROR: metahandler: Error connecting to TMDB: HTTP Error 401: Unauthorized
10:26:32 T:8336  NOTICE: metahandler: No SQLite rows requiring update

It looks like the module tries to get the movie information from TMDB. I would like to use the movie information from the local kodi movie database. Is there a way to do that?
Reply
#6
I don't know about python plugin please let me know about it.
http://www.mail-customersupport.com/gmai...pport.html
Reply
#7
Kodi media library does suppoprt .strm files (though with some limitations). Add your folder with .strm files to Kodi as a regular movie/TV show source and select an appropriate scraper, and then scan that folder.
Reply

Logout Mark Read Team Forum Stats Members Help
How to get database movie infos from python plugin?1