Implement EncodeTrackFile job

This commit is contained in:
Kelvin Zhang 2015-10-27 17:35:38 +00:00
parent 43c45adece
commit f205cf6d93

View file

@ -75,8 +75,8 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
->getFile(); ->getFile();
// Assign the target // Assign the target
$destination = $this->trackFile->track()->getDirectory(); $destination = $this->trackFile->track->getDirectory();
$this->trackFile->track()->ensureDirectoryExists(); $this->trackFile->track->ensureDirectoryExists();
$target = $destination . '/' . $this->trackFile->getFilename(); $target = $destination . '/' . $this->trackFile->getFilename();
// Prepare the command // Prepare the command
@ -100,7 +100,7 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
} }
// Update the tags of the track // Update the tags of the track
$this->trackFile->track()->updateTags(); $this->trackFile->track->updateTags();
// Insert the expiration time for cached tracks // Insert the expiration time for cached tracks
if ($this->isExpirable) { if ($this->isExpirable) {