Skip to content

Commit

Permalink
Fix metadata sources
Browse files Browse the repository at this point in the history
These are an object, not an array. Toward #42.
  • Loading branch information
waldoj committed Jan 14, 2018
1 parent ae33b3d commit bf06d17
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/save_metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@
$file['length'] = $video->length;
$file['capture_rate'] = $video->capture_rate;


/*
* Then, store information that we already know about this file.
*/
$file['path'] = $metadata['s3_url'];
$file['chamber'] = $metadata['chamber'];
$file['date'] = $metadata['date_hyphens'];
$file['path'] = $metadata->s3_url;
$file['chamber'] = $metadata->chamber;
$file['date'] = $metadata->date_hyphens;
$file['type'] = 'video';
$file['title'] = ucfirst($file['chamber']) . ' Video';

Expand Down

0 comments on commit bf06d17

Please sign in to comment.