Posts: 46
Joined: Nov 2008
Reputation:
0
m69bv3
Junior Member
Posts: 46
Hi,
I'm building a web front end in php to manage the XBMC library via HTTP API and I'm looking for a way to mark an file/episode as watched with a command or an SQL request.
Thank's for your help!
--
'xcuse My English I'm French
Posts: 26,215
Joined: Oct 2003
Reputation:
187
See the query in CVideoDatabase::MarkAsWatched() et. al.
Cheers,
Jonathan
Posts: 46
Joined: Nov 2008
Reputation:
0
m69bv3
Junior Member
Posts: 46
Thanks Jonathan,
I think I can't call this function from the Web Interface since the argument is a C++ object.
But I've seen the SQL request in the source code to mark a movie/episode as watched, I will try this way.
Related question, I've seen "count" information about tvshow in the database, how theses informations will be up to date if I change directly episodes status by SQL?
Informations will be recomputed in the next Library Update?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
They're computed in the query itself, so yes, they're up to date no matter what you do.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Ah - looks like GetArbitraryQuery which is called from this routine can only do queries. You'd need something that does an exec(), but it doesn't look like anything that can handle that sort of thing is available over the HTTP API.
Cheers,
Jonathan
Posts: 46
Joined: Nov 2008
Reputation:
0
m69bv3
Junior Member
Posts: 46
My C++ is a little bit rusty but I will try!
Is there a tutorial to submit a patch when It's done?