Kodi Community Forum
Importing movies and TV shows to Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Importing movies and TV shows to Kodi (/showthread.php?tid=375011)



Importing movies and TV shows to Kodi - Stuggy - 2023-11-12

I'm working on my pvr addon.

I would prefer to use Kodi's movie and tv show sections to show tv and movies than recordings.  I know that I can add items to recordings but I don't think that recordings has the same nice interface with groupings etc.

My links to these items are served from my server using http.  I tried modifying I think it was field c22 in the Kodi tv database but it seems to work only for actual files.

I would prefer not to have to install other addons etc and just do it directly.

I have achieved movies using .strm files but series don't work and I would prefer a better way than creating a lot of strm files.

Has anyone been down this road and have ideas?


RE: Importing movies and TV shows to Kodi - izprtxqkft - 2023-11-12

if you want addon provided content to be inserted into the kodi database as though it were physical media

you need to implement 'medialibraryscanpath'

https://forum.kodi.tv/showthread.php?tid=374003&pid=3162537#pid3162537


RE: Importing movies and TV shows to Kodi - Stuggy - 2023-11-13

Thanks so much if this is a way without me trying to directly play with the Kodi DB.  I'm using C++ and will study your link.  I was hoping that there was a way but was losing hope after reading a lot of threads.

I'll post back with progress.

It just made logical sense to me that you should be able to easily import both local physical media and remote served media.


RE: Importing movies and TV shows to Kodi - Stuggy - 2023-11-13

I'm looking through this and trying to get the concepts.

Do I have to create a video addon?  I would prefer a call to my pvr addon if possible.


RE: Importing movies and TV shows to Kodi - izprtxqkft - 2023-11-13

i don't know that my suggestion actually works with a binary addon

my mistake


RE: Importing movies and TV shows to Kodi - Stuggy - 2023-11-13

I'm making a bit of progress.  Can Kodi send a notification when a movie for example is selected to play?  Another option might be a menuhook but the menhuooks in PVR addons don't seem to reference any movie category (probably because they work with recordings).