Comments (3)
De acuerdo con la api, si es posible. Pero habría que añadírselo a la librería.
un saludo
from tmdb_v3-php-api-.
@joseska Complementando lo que comenta @Alvaroctal, en la documentación de la API menciona que el año es un parametro opcional.
En el archivo tmdb-api.php busca la siguiente función
public function searchMovie($movieTitle){
$movies = array();
$result = $this->_call('search/movie', 'query='. urlencode($movieTitle), $this->getLang());
...
Intenta agregando year en $result:
...
$result = $this->_call('search/movie', 'query='. urlencode($movieTitle) . '&year=2009', $this->getLang());
...
``
from tmdb_v3-php-api-.
Gracias, me sirvió de mucho. al final quedo así:
public function searchMovie2($movieTitle, $movieYear){
$movies = array();
// $result = $this->_call('search/movie', 'query='. urlencode($movieTitle), $this->getLang());
//modificado SKA
$result = $this->_call('search/movie', 'query='. urlencode($movieTitle) . '&year='.urlencode($movieYear), $this->getLang());
foreach($result['results'] as $data){
$movies[] = new Movie($data);
}
return $movies;
}
from tmdb_v3-php-api-.
Related Issues (20)
- How to get Movie/TV/Person search page ? HOT 2
- No ../tmdb-api.php file included, on this code HOT 1
- Errer Showing HOT 16
- List of film genres HOT 11
- Empty youtube video problem HOT 5
- how to show movie certification HOT 3
- setAPIKey not working
- Trailer in TV Show HOT 3
- Num of episodes in seasons loop HOT 3
- episodes images not working HOT 1
- I cant get the backdrop HOT 1
- getImageURL not working
- Get Production (Aired) Year for TV Show
- How do I get the [character] each actor played in the movie??
- Auto suggest in search
- A missed quote in README.markdown
- imdb tv id get data not working
- this genre data
- Error Handler
- please insert RatedMovies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmdb_v3-php-api-.