Skip to content

A self-hosted media server and file management system

fix episode and season parsing

aminnausin33542cd50d78
diff --git a/app/Jobs/VerifyFiles.php b/app/Jobs/VerifyFiles.php
index f8b380a0..95c9ae67 100644
--- a/app/Jobs/VerifyFiles.php
+++ b/app/Jobs/VerifyFiles.php
@@ -64,9 +64,8 @@ class VerifyFiles implements ShouldQueue
$changes['duration'] = $duration;
}
- if(is_null($video->season) && count($season) == 1) $changes['season'] = (int)$season;
- if(is_null($video->episode) && count($episode) == 1) $changes['episode'] = (int)$episode;
- if(is_null($video->season) && count($season) == 1) $changes['season'] = (int)$season;
+ if(is_null($video->episode) && count($episode) == 1) $changes['episode'] = (int)$episode[0];
+ if(is_null($video->season) && count($season) == 1) $changes['season'] = (int)$season[0];
if(is_null($video->title)){
$newTitle = count($season) == 1 ? 'S' . $season[0] : '';