mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
feat(plugins): add spark commands to install, add, update and remove plugins using adaures' cpm
update js & php dependencies to latest and fix rector, phpstan and ecs issues
This commit is contained in:
parent
b5a403b990
commit
3d0db5c64a
37 changed files with 12189 additions and 6494 deletions
|
|
@ -27,7 +27,7 @@ use Exception;
|
|||
* @property int $episodes_imported
|
||||
* @property ?int $episodes_count
|
||||
* @property int $progress
|
||||
* @property int $duration
|
||||
* @property ?int $duration
|
||||
*
|
||||
* @property ?int $process_id
|
||||
*
|
||||
|
|
@ -100,7 +100,7 @@ class PodcastImportTask extends Entity
|
|||
|
||||
public function getDuration(): int
|
||||
{
|
||||
if ($this->duration === null && $this->started_at && $this->ended_at) {
|
||||
if ($this->duration === null && $this->started_at !== null && $this->ended_at !== null) {
|
||||
$this->duration = ($this->started_at->difference($this->ended_at))
|
||||
->getSeconds();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue