@@ -155,7 +155,7 @@ public function film($query, $techSpecs=false) {
155155
156156 $ response ["title " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.title_wrapper h1 ' )->text );
157157 $ response ["year " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.title_wrapper h1 #titleYear a ' )->text );
158- $ response ["rating " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.ratings_wrapper .ratingValue strong span ' )->text );
158+ $ response ["rating " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.ratings_wrapper .ratingValue span[itemprop=ratingValue] ' )->text );
159159 $ response ["rating_votes " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.ratings_wrapper span[itemprop=ratingCount] ' )->text );
160160 $ response ["length " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.subtext time ' )->text );
161161 $ response ["plot " ] = $ this ->textClean ($ this ->htmlFind ($ film_page , '.plot_summary .summary_text ' )->text );
@@ -257,9 +257,10 @@ public function film($query, $techSpecs=false) {
257257 foreach ($ techSpecs_table as $ techSpecs_row )
258258 {
259259 // Get row title
260- $ row_title = $ this ->textClean ($ techSpecs_row ->find ('td ' )[0 ]->text );
260+ $ row_title = $ this ->textClean ($ techSpecs_row ->find ('td ' )[0 ]->text ( true ) );
261261 // Get row value
262- $ row_value = str_replace (" " , " <br> " , $ this ->textClean ($ techSpecs_row ->find ('td ' )[1 ]->text ));
262+ // -> reutrn all text (within all child nodes)
263+ $ row_value = str_replace (" " , " <br> " , $ this ->textClean ($ techSpecs_row ->find ('td ' )[1 ]->text (true )));
263264
264265 // Create response var
265266 $ row = [$ row_title , $ row_value ];
0 commit comments