nimah79 / Subscene-API-PHP

REST API for Subscene subtitle service, written in PHP
22 stars 4 forks source link

Only returning one title #4

Closed Jeffmong closed 5 years ago

Jeffmong commented 5 years ago

On using the example: $movies = SubScene::search('Fast Five');

I was only getting a return of 1 result: Array ( [0] => Array ( [title] => Fast Five - How We Roll (Fast Five) [Album- iDon] (2009) [url] => https://subscene.com/subtitles/fast-five-how-we-roll-fast-five-album-idon ) )

Changing "count($titles)" in the for loop of "subscene.php" to "$titles->length" fixed this for me and correctly returns 15 results.

nimah79 commented 5 years ago

It's now fixed. Thanks for your report.