1
0
Fork 0

Session kaput check

This commit is contained in:
magnolia-fan 2011-04-03 00:44:50 +04:00
parent 10486b5150
commit 3adb618f3f
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ while (true) {
echo "#{$t['track_id']} {$t['track_title']} -- ";
$ok = $vk->getTracks($t['track_title']);
if (strpos($vk->getHtml(), 'searchOffset') === false) {
echo "Session kaput!\n";
die;
}
if ($ok) {
echo "OK\n";
$db->q("UPDATE beathaven.queue SET status=3 WHERE track_id=". $t['track_id']);