So I am trying to Sync a bunch of Videos I've retrieved from a particular user from Youtube to a database table of Video Ids.
This is because YouTube does not allow the adding of meta information to a video. Hence I've created a video table on my server and would like to sync up videoids.
i.e. php/mysql app <-> youtube
The datastructure for youtube videos is as follow:
foreach ($feed as $entry) {
print "<p>";
print $entry->getVideoId();
print "</p>";
}
for my db is this:
$rs->MoveFirst();
while (!$rs->EOF) {
print "<p>";
print $rs->fields['yt_id'];
print "</p>";
$rs->MoveNext();
}
Do you know how can I sync up these data so that:
- Whenever user uploads a new video on youtube, I can call a sync function that will retrieve the latest video and add it to the mysql db?
- However, if the user deletes a video on youtube, there is no delete?