mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
Update models with isCached
This commit is contained in:
parent
4876775f31
commit
88b57a631a
2 changed files with 4 additions and 2 deletions
|
@ -99,7 +99,8 @@ class Album extends Model
|
|||
'name' => $name,
|
||||
'extension' => $format['extension'],
|
||||
'url' => $album->getDownloadUrl($name),
|
||||
'size' => Helpers::formatBytes($album->getFilesize($name))
|
||||
'size' => Helpers::formatBytes($album->getFilesize($name)),
|
||||
'isCacheable' => (in_array($name, array_keys(Track::$CacheableFormats)) ? true : false)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -235,7 +235,8 @@ class Track extends Model
|
|||
'name' => $trackFile->format,
|
||||
'extension' => $trackFile->extension,
|
||||
'url' => $trackFile->url,
|
||||
'size' => $trackFile->size
|
||||
'size' => $trackFile->size,
|
||||
'isCacheable' => $trackFile->is_cacheable
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue