-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kodi library support (without the need for MySQL) #877
Comments
seem interesting, but i have a lot of perplexities on this method and some leak of info Then first point is: How to have a central point to exchange data on differents Kodi systems? Then second point is: Third: These are some of the perplexities |
I have a shared MySQL database setup, and this method works out-of-the-box with such a setup. No need to configure anything.
The items are stored in the Kodi library as plugin:// locations pointing to the add-on. So you play using the add-on, but from the Kodi Library itself.
Yes, that also works out-of-the-box. It does require proper metadata (which you already have) and it probably would make sense to add all movies, but e.g. only the TV shows that the user has in his List.
We implemented it in two add-ons and it was not a lot of work. The hardest part will probably be to add a unique hash based on the episodes in a TV show (so that Kodi does not scan every TV show every time, but only the ones that actually changed). If you already have a cache of your metadata (our add-ons do) then the overhead can be reduced. Granted Netflix is a lot bigger than our VOD services.
|
Wrt. shared settings for subtitles/audio that is not foreseen in Kodi's Video library, so that is not supported. |
i use Mysql to store addon data (in a separated database) to be shared with other addon installations, as said before if i can not use it, will become complex many parts of the add-on must be rewritten and other will be broken, i do not see alternative method
this is a feature provided from nf add-on not kodi, that need mysql (or similar db/store to share data) to be shared with all devices
e.g. some parts of the add-on require the ability to get the entire exported list as "videoid" then this have to be rewritten The kodi library scan is the best candidate to be a killer NF account, Currently library exports and updates are managed via "metadata" API, From my POV the method proposed is not so simple to integrate |
An example to try resolve this can be: to do this is needed to build a complete separated data elaboration but still another problematic point: there is a lot of thing to look around and add/modify... But still not understand, things like example:
|
What do you mean "add a movie"? Please be more specific.
I also do not understand why you mentioned then "updates of episodes". The mechanism is quite simple, if you understand the mechanism, you understand the implications and limitations.
Kodi only has a setting to update on start-up (this will affect all sources), but we plan to have our own scheduler per add-on to periodically update the sources (with some random factor obviously). There is a JSON-RPC call for updating a source in the Library. But there is also this project: https://github.com/robweber/xbmclibraryautoupdate |
yes before some backgroud, because i do not know if i able to explain without misunderstandings: This can be synched with My list but often user not Sync to My list and use it separately So now with this method, i do not understand on how do the same thing, so e.g.:
|
Most add-ons have the concept of "Follow" (usually for TV shows) or "Watch later" (usually for Movies, oneoffs or episodes). This is stored at the VOD service, so this works cross-device already. My preference (and this could be made configurable) is to make this available through these plugin:// locations for Movies and TV shows as highlighted above, but list all Movies (and oneoffs) by default, and only list the followed TV series (which is a smaller subset). This way the user-experience is not harmed, if a user adds something to "My List" it will automatically be listed in his Kodi Library, and new episodes or new movies would be listed there as well. (Automatically here could mean that the add-on would scan the newly added item immediately or at some later time schedules an update for everything) For Netflix I would make it work like this, unless the total Movies listing is a concern as well, I don't know how often this changes. I understand that Netflix is different than our typical VOD service in scale. It is also possible that the user can select a sub-selection to make visible in the Kodi Library (e.g. only SciFi movies, or Children movies) so that it is somewhat more efficient. That said, I have never used the current implementation in the Netflix add-on because it is fairly complex and it is specific to Netflix only. The benefit of the mechanism we are considering now would be standardized and supported by Kodi. We have 4 add-ons that are candidates for implementing this. The only thing missing in Kodi is a way to share your add-on settings cross-device, which would make VOD service credentials and other specific settings to be synchronized. I know there are solutions already for this, but nothing out-of-the-box that is straightforward for normal users :-) And that said, I understand you have invested in a more comprehensive implementation, and it will not be easy to move existing users to something new and different. I just wanted to give you the heads up that this exists (and existed since 2018 apparently). I don't think a lot of people knew this was possible. |
Ok, let's make it more clear. Netflix would have 2 plugin:// locations, one for Movies, one for TV shows.
Each return a list of ListItems, including all metadata (just like any other view in Netflix). This could already be the same view as your current My List, but it needs to seperate the Movies and TV shows (because the library handles them differently). You can already start playing with this, with minimal changes:
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
<medialibraryscanpath content="movies">directory/video_list_sorted/myList/queue/</medialibraryscanpath>
</extension>
Beware that you can only add one location per source, more than one is unsupported and will fail to work. That is it, your My List movies (and unfortunately TV shows) will become part of your Kodi Library. And if you update the Library, new movies will be added.
You can find the list in Video / Sources once you have added it. See the pull requests I linked to see how easy it could be to support this, even without removing the existing infrastructure. |
Unfortunately I cannot use the ZIP file from your repository (anymore) to test this myself. The mysql-connector is no longer included. |
thanks for the tips, |
I don't think i will invest time on this |
Feature request
I'm submitting a proposal to ...
Describe your request
We started implementing a solution that allows you to add Movies and Series to Kodi without the need of having a MySQL database or a complex setup. The implementation is quite straightforward.
Describe the use case
The way this works is that the user adds 2 new sources to Kodi, pointing to a Movies and TV shows listing, eg.
These sources are typical Virtual Directories (comprising ListItem objects) and will be indexed into Kodi's library.
This works both with Kodi setups using local databases, or a shared MySQL Videos library.
Development tips
Here is the implementation for:
Specific details
See more information at:
The text was updated successfully, but these errors were encountered: