2013-06-09, 12:52
Thank you for your response. Now I think I have a know a bit about the json\videolibrary and the video\videodatabase class.
videolibrary handles the JSON requests and executes functions of videodatabase.
videodatabase executes direct SQL commands.
So the goal is to update single values the database tables without deleting anything.
So we may not update any linked fields, only fields with no relation to other tables (sorry MilhouseVH artwork is too complicated for now...)
My suggestions:
for both a whitelist with fields that are not linked is necessary.
Useful functions:
If everything is done all has to get adopted for tvshows and music.
What do you think about it?
And shall I open a thread under JSON development cause now it has no relation to Add-on development anymore?
videolibrary handles the JSON requests and executes functions of videodatabase.
videodatabase executes direct SQL commands.
So the goal is to update single values the database tables without deleting anything.
So we may not update any linked fields, only fields with no relation to other tables (sorry MilhouseVH artwork is too complicated for now...)
My suggestions:
- add new UpdateMovieDetail to videolibrary
- change SetMovieDetails to update only single fields when usefull
for both a whitelist with fields that are not linked is necessary.
Useful functions:
- videodatabase.SetDetail (updates only one field)
- videodatabase.GetValueString (converts parameters to SQL)
- videodatabase.SetDetailsForMovie (last block)
If everything is done all has to get adopted for tvshows and music.
What do you think about it?
And shall I open a thread under JSON development cause now it has no relation to Add-on development anymore?