File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ private function populateOptions(array $options = []): array
2525 'category ' => 'all ' ,
2626 'curlHeaders ' => ['Accept-Language: en-US,en;q=0.5 ' ],
2727 'techSpecs ' => true ,
28- 'seasons ' => true ,
28+ 'seasons ' => false ,
2929 ];
3030
3131 // Merge any user options with the default ones
@@ -116,8 +116,8 @@ public function film(string $filmId, array $options = []): array
116116 $ response ->add ("technical_specs " , $ htmlPieces ->get ($ page_techSpecs , "technical_specs " ));
117117 }
118118
119- // If seasons is enabled
120- if ($ options ['seasons ' ]) {
119+ // If seasons is enabled & is a tv show
120+ if ($ options ['seasons ' ] && $ response -> get ( " tvShow " ) ) {
121121 $ url = "https://www.imdb.com/title/ $ filmId/episodes " ;
122122 $ page_seasons = $ dom ->fetch ($ url , $ options );
123123 // If film has episodes or seasons
You can’t perform that action at this time.
0 commit comments