I'd like to add a new feature in vcddb, which I think, is easy to implement. The problem is that I didn't read the code, so I don't really know how to do it.
A thing which is missing and could be interresting to have is to be able to know all the movie I didn't see for example.
In Vcddb, there is a feature on the movie description that allow you to tell if you saw the movie or not (the icon by default is a small disc with a green "plus").
I'd like to get a list of all the movies i didn't see.
I search this information on the database, and found that it is located on the table "vcd_MetaData".
Here is an example of a "vcd_MetaData" entry:
- Code: Select all
+-------------+-----------+--------------+---------+---------+----------------+
| metadata_id | record_id | mediatype_id | user_id | type_id | metadata_value |
+-------------+-----------+--------------+---------+---------+----------------+
| 248 | 278 | 0 | 2 | 12 | 0 |
+-------------+-----------+--------------+---------+---------+----------------+
With this information it's easy to create a request, to find out all the movies the user $user didn't already see:
select record_id from vcd_MetaData where user_id = $user and type_id = 12 and metadata_value = 0;
That will return the whole list of all the movies that user didn't see.
I'm sure there are some things already done to display a list of entries (of movies id), but I don't know how to do it.
Can you please help me if it's easy to do?
Thanks a lot
Ketzaldev
