Session kaput check
This commit is contained in:
parent
10486b5150
commit
3adb618f3f
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue