bug fix for c_id thing; sometimes they arent provided (why?)
This commit is contained in:
parent
8c650c564c
commit
3c78159bb3
1 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($result['snaps'] as $snap) {
|
foreach ($result['snaps'] as $snap) {
|
||||||
var_dump($snap['st']);
|
|
||||||
if ($snap['st'] == SnapHax::STATUS_NEW) {
|
if ($snap['st'] == SnapHax::STATUS_NEW) {
|
||||||
echo "fetching $snap[id]\n";
|
echo "fetching $snap[id]\n";
|
||||||
$blob_data = $s->fetch($snap['id']);
|
$blob_data = $s->fetch($snap['id']);
|
||||||
|
@ -39,7 +38,7 @@
|
||||||
$ext = '.jpg';
|
$ext = '.jpg';
|
||||||
else
|
else
|
||||||
$ext = '.mp4';
|
$ext = '.mp4';
|
||||||
file_put_contents($snap['c_id'].$ext, $blob_data);
|
file_put_contents($snap['sn'].$snap['id'].$ext, $blob_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue