🐛 Parse movie.nfo file

This commit is contained in:
Dan Jones 2025-12-18 16:34:15 -06:00
commit bb576c6f5c

View file

@ -24,6 +24,7 @@ class GetSeasonEp implements DataPipe
$pi = pathinfo($path); $pi = pathinfo($path);
$nfo = "{$pi['dirname']}/{$pi['filename']}.nfo"; $nfo = "{$pi['dirname']}/{$pi['filename']}.nfo";
$movieNfo = "{$pi['dirname']}/movie.nfo";
if (file_exists($nfo)) { if (file_exists($nfo)) {
$properties['epNfo'] = $nfo; $properties['epNfo'] = $nfo;
$xml = simplexml_load_file($nfo); $xml = simplexml_load_file($nfo);
@ -34,6 +35,10 @@ class GetSeasonEp implements DataPipe
} else if ($type === 'movie') { } else if ($type === 'movie') {
return $this->getFilmFromNfo($properties, $xml); return $this->getFilmFromNfo($properties, $xml);
} }
} else if (file_exists($movieNfo)) {
$properties['epNfo'] = $movieNfo;
$xml = simplexml_load_file($movieNfo);
return $this->getFilmFromNfo($properties, $xml);
} }
return $this->getEpFromFfprobe($properties); return $this->getEpFromFfprobe($properties);