Added handling of created_manual, revert some file_path()

This commit is contained in:
Deon George
2020-01-05 18:02:32 +11:00
parent 0b6b3021fd
commit 270f63144b
4 changed files with 30 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ class Video extends Abstracted\Catalog
{
// ID3 Object
private $_o = NULL;
protected $dates = ['created','created_manual'];
public function getIDLinkAttribute()
{
@@ -124,6 +125,11 @@ class Video extends Abstracted\Catalog
return isset($data[$key]) ? $data[$key] : NULL;
}
public function setDateCreated()
{
$this->created = strtotime($this->property('creationdate'));
}
public function setLocation()
{
$this->gps_lat = $this->property('gps_lat');