✨ Export films
This commit is contained in:
parent
1295b03c3a
commit
dfc11d7a7f
5 changed files with 71 additions and 14 deletions
|
|
@ -1,7 +1,10 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Data\DataPipes;
|
||||
|
||||
use App\Data\Enums\Type;
|
||||
use Illuminate\Support\Collection;
|
||||
use SimpleXMLElement;
|
||||
use Spatie\LaravelData\DataPipes\DataPipe;
|
||||
|
|
@ -28,6 +31,7 @@ class GetShowTmdb implements DataPipe
|
|||
}
|
||||
|
||||
$properties['showNfo'] = $nfo;
|
||||
$properties['type'] = Type::Episode;
|
||||
|
||||
$xml = simplexml_load_file($nfo);
|
||||
$properties['showTmdb'] = $this->getProp($xml, 'tmdbid');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue