🐛 Parse movie.nfo file
This commit is contained in:
parent
dd7196572c
commit
bb576c6f5c
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue