mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
feat(media): save audio, images, transcripts and chapters to media for episode and persons
This commit is contained in:
parent
fafaa7e689
commit
58e2a00a87
22 changed files with 144 additions and 129 deletions
|
|
@ -128,8 +128,10 @@ class MediaModel extends Model
|
|||
return $this->update($media->id, $media);
|
||||
}
|
||||
|
||||
public function deleteMedia(int $mediaId): bool
|
||||
public function deleteMedia(object $media): bool
|
||||
{
|
||||
return $this->delete($mediaId, true);
|
||||
$media->deleteFile();
|
||||
|
||||
return $this->delete($media->id, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue