mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
Implement EncodeTrackFile job
This commit is contained in:
parent
43c45adece
commit
f205cf6d93
1 changed files with 3 additions and 3 deletions
|
@ -75,8 +75,8 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
|
|||
->getFile();
|
||||
|
||||
// Assign the target
|
||||
$destination = $this->trackFile->track()->getDirectory();
|
||||
$this->trackFile->track()->ensureDirectoryExists();
|
||||
$destination = $this->trackFile->track->getDirectory();
|
||||
$this->trackFile->track->ensureDirectoryExists();
|
||||
$target = $destination . '/' . $this->trackFile->getFilename();
|
||||
|
||||
// Prepare the command
|
||||
|
@ -100,7 +100,7 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
|
|||
}
|
||||
|
||||
// Update the tags of the track
|
||||
$this->trackFile->track()->updateTags();
|
||||
$this->trackFile->track->updateTags();
|
||||
|
||||
// Insert the expiration time for cached tracks
|
||||
if ($this->isExpirable) {
|
||||
|
|
Loading…
Reference in a new issue