mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Add $CacheableFormats to Track.php
This commit is contained in:
parent
a9f80fde6e
commit
9470faaaa2
1 changed files with 21 additions and 0 deletions
|
@ -93,6 +93,27 @@ class Track extends Model
|
|||
],
|
||||
];
|
||||
|
||||
public static $CacheableFormats = [
|
||||
'OGG Vorbis' => [
|
||||
'index' => 2,
|
||||
'is_lossless' => false,
|
||||
'extension' => 'ogg',
|
||||
'tag_format' => 'vorbiscomment',
|
||||
'tag_method' => 'updateTagsWithGetId3',
|
||||
'mime_type' => 'audio/ogg',
|
||||
'command' => 'ffmpeg 2>&1 -y -i {$source} -acodec libvorbis -aq 7 -f ogg {$target}'
|
||||
],
|
||||
'ALAC' => [
|
||||
'index' => 4,
|
||||
'is_lossless' => true,
|
||||
'extension' => 'alac.m4a',
|
||||
'tag_format' => 'AtomicParsley',
|
||||
'tag_method' => 'updateTagsWithAtomicParsley',
|
||||
'mime_type' => 'audio/mp4',
|
||||
'command' => 'ffmpeg 2>&1 -y -i {$source} -acodec alac {$target}'
|
||||
],
|
||||
];
|
||||
|
||||
public static function summary()
|
||||
{
|
||||
return self::select('tracks.id', 'title', 'user_id', 'slug', 'is_vocal', 'is_explicit', 'created_at', 'published_at',
|
||||
|
|
Loading…
Reference in a new issue