2015-01-03, 13:55
So I'm not really sure that this is the right place for this thread but since it touches on multiple subjects I thought it would be best to put it here.
I've recently discovered Kodi and I'm impressed with whats already working. I've been looking for a way to easily access my Anime library in a concise form and Kodi seems to be the right thing to do that.
However after reading all the info on the subject and discovering that I would have to either adapt my naming scheme and/or muck around with regexes I thought that there must be a better way.
This brought me to the Plugin idea and now after reading through a whole lot of information I'm the following point:
- I would like my plugin to directly access the files and add them to the TvShow listing.
- A scraper won't work because that doesn't have access to the files directly and can't work with python scripts afaik.
- I have found no way to ADD episodes or shows to the database using a plugin. The JSON RPC Api only allows changing existing episodes or removing them altogether as far as I can see.
- EDIT: Direct access to files can be done using JSON RPC and the Files.GetSources command and then selecting the appropriate source. This however also requires that the source has already been added in Kodi itself through the usual interface. It would be interesting to know whether a plugin can add filesystem sources as well.
So my question would be the following:
Is it possible to write a script/plugin/addon that can directly access files and add them to the database with info provided by the script?
EDIT: I'm thinking about creating nfo files from a plugin and then initiating a library rescan. That might work. However this requires write access to the directory the files are stored in =/
I've recently discovered Kodi and I'm impressed with whats already working. I've been looking for a way to easily access my Anime library in a concise form and Kodi seems to be the right thing to do that.
However after reading all the info on the subject and discovering that I would have to either adapt my naming scheme and/or muck around with regexes I thought that there must be a better way.
This brought me to the Plugin idea and now after reading through a whole lot of information I'm the following point:
- I would like my plugin to directly access the files and add them to the TvShow listing.
- A scraper won't work because that doesn't have access to the files directly and can't work with python scripts afaik.
- I have found no way to ADD episodes or shows to the database using a plugin. The JSON RPC Api only allows changing existing episodes or removing them altogether as far as I can see.
- EDIT: Direct access to files can be done using JSON RPC and the Files.GetSources command and then selecting the appropriate source. This however also requires that the source has already been added in Kodi itself through the usual interface. It would be interesting to know whether a plugin can add filesystem sources as well.
So my question would be the following:
Is it possible to write a script/plugin/addon that can directly access files and add them to the database with info provided by the script?
EDIT: I'm thinking about creating nfo files from a plugin and then initiating a library rescan. That might work. However this requires write access to the directory the files are stored in =/