963 | | This method is useful, when user is typing movie name in search subtitles area. Use-case scenario - user is in search subtitles pane of program, and searching for subtitles. He start typing, and this method returns count of existing subtitles for given languages, then he select some movie, and !SearchSubtitles by IDMovieIMDB is performed. $sublanguageid can be more languages "eng,por,pob" for example. The results are ordered by popularity of movie, the !SubtitlesFound is always higher than 0. This method is not suitable to implement in Upload area of program (because only existing IMDBIDs are returned which got suitable subtitles). $sublanguageid is optional, if not specified ($sublanguage == 'all'), then for all languages is suggestion made, so it is good idea to pass user-defined subtitle language(s) here. |
964 | | |
965 | | We are using exactly same logic and data on website, the URL for JSON output is http://www.opensubtitles.org/libs/suggest.php?format=json3&MovieName=m&SubLanguageID=eng,por,pob - but if possible use xml-rpc method. |
| 963 | This method is useful for when a user is typing a movie or series name in a search field. Use-case scenario; The user is in the Search Subtitles -pane of a program and searching for subtitles. He starts typing and this method returns the count of existing subtitles for the given languages. Then he selects a movie or series and a SearchSubtitles by IDMovieIMDB is performed. |
| 964 | $sublanguageid can be multiple languages (eg.: "eng,por,pob"). The results are ordered by popularity of movie. The !SubtitlesFound is always higher than 0. This method is not suitable to implement in an Upload function of a program (because only existing IMDb IDs are returned that have suitable subtitles). |
| 965 | $sublanguageid is optional. If not specified, $sublanguage == 'all'. In that case, suggestions are made for All languages. So it is a good idea to pass user-defined subtitle language(s) here. |
| 966 | |
| 967 | We're using the same logic and data on our website. The URL for JSON output is http://www.opensubtitles.org/libs/suggest.php?format=json3&MovieName=m&SubLanguageID=eng,por,pob. But if possible, please use the xml-rpc method. |