Tmdb Client Error: {"success":false,"status_code":11,"status_message":"Internal error: Something went wrong, contact TMDb.","combined_credits":{"cast":[{"adult":false,"backdrop_path":null,"genre_ids":[99,10770],"id":1176087,"original_language":"en","original_title":"The Minnie Riperton Story","overview":"Documenting the rise and finite career of late R\u0026B recording artist Minnie Riperton.","popularity":1.112,"poster_path":"/yCdaL9XyFNGz0B5lCoUUcvWbEkm.jpg","release_date":"2009-06-07","title":"The Minnie Riperton Story","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"64fcbdf7db4ed610363d570d","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":"/fkCFt01gsXNZkSu2aYYLqeqi2Pq.jpg","genre_ids":[18,28,80],"id":107007,"original_language":"en","original_title":"The Big Score","overview":"A narcotics detective, played by Fred Williamson, lets nothing stand in the way of his bringing down a major drug dealer. After a bust gone awry, he's accused of stealing a lost briefcase filled with money and both the mob and the police are looking for him. A ruthless hit man, played by Bruce Glover, will stop at nothing to get what his boss wants; the money!","popularity":1.319,"poster_path":"/au7g7xFJqMtUgiW8CUj1jbjtufC.jpg","release_date":"1983-03-17","title":"The Big Score","video":false,"vote_average":5.0,"vote_count":3,"character":"Self (uncredited)","credit_id":"54de3117c3a3684558001bf2","order":15,"media_type":"movie"},{"adult":false,"backdrop_path":"/e1mlqfKUDAhBwOLYUNu0y7F8pBF.jpg","genre_ids":[10402],"id":326535,"original_language":"en","original_title":"Legends of Jazz: Showcase with Ramsey Lewis","overview":"Legends Of Jazz with Ramsey Lewis is a dynamic all-star collection of 13 riveting performances featuring some of the biggest names in contemporary jazz music! Tracklisting: 1. Al Jarreau, Kurt Elling - Take Five 2. Chris Botti - My Funny Valentine 3. Marcus Miller, George Duke, Lee Ritenour - The Panther 4. David Sanborn, Phil Woods - Senor Blues 5. Chick Corea - Armando's Rhumba 6. Robert Cray, Keb' Mo' - 12 Year Old Boy 7. Benny Golson - Killer Joe 8. Ivan Lins - The Island 9. Clark Terry - Mumbles 10. Jane Monheit, John Pizzarelli - They Can't Take That Away 11. Dave Valentin - Obsesion 12. Dave Brubeck, Billy Taylor - Take the 'A' Train 13. Ramsey Lewis - Dear Lord","popularity":0.854,"poster_path":"/c9gV2YsVTb7Ch1vJ8aJQrBuGE1c.jpg","release_date":"2006-04-25","title":"Legends of Jazz: Showcase with Ramsey Lewis","video":true,"vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"54e85224925141117c000f3b","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":"/qsJp4qVxJyy1tLK5YYjDzW8yy40.jpg","genre_ids":[10402,99],"id":208849,"original_language":"en","original_title":"Save the Children","overview":"A concert film highlighted by performances from Marvin Gaye, Jerry Butler, and Roberta Flack.","popularity":3.061,"poster_path":"/1LPRkefROCVaaxdlsDT4J8Tq4Bi.jpg","release_date":"1973-05-13","title":"Save the Children","video":false,"vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"59c7fe199251415b6e05a2e2","order":16,"media_type":"movie"},{"adult":false,"backdrop_path":"/wFmrCmCC9rH9HWOkVDTroyC3dWB.jpg","genre_ids":[99,10402],"id":525638,"original_language":"en","original_title":"America's Musical Journey","overview":"\"AMERICA'S MUSICAL JOURNEY\" celebrates the unique diversity of cultures and creative risk-taking that characterize America, as told through the story of its music.","popularity":2.634,"poster_path":"/aoU43IWRcv7Xpe5BTzyi6VkFRnl.jpg","release_date":"2018-05-17","title":"America's Musical Journey","video":false,"vote_average":5.6,"vote_count":5,"character":"Self","credit_id":"5fa7900be6d3cc00411cf0b0","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":6249,"origin_country":["US"],"original_language":"en","original_name":"Rock Concert","overview":"Don Kirshner's Rock Concert is an American television music variety show that ran during the 1970s and early 1980s, created and produced by Don Kirshner and syndicated to television stations. It premiered on September 27, 1973, with a performance by The Rolling Stones; its last episode was in 1981.","popularity":13.592,"poster_path":"/4qLa3uzz90looZy0y75ilON63rI.jpg","first_air_date":"1973-09-27","name":"Rock Concert","vote_average":8.0,"vote_count":2,"character":"","credit_id":"5257859b19c29531db28c43a","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":10512,"origin_country":["US"],"original_language":"en","original_name":"Hullabaloo","overview":"Hullabaloo is an American musical variety series that ran on NBC from January 12, 1965 through August 29, 1966. Similar to Shindig! it ran in prime time in contrast to ABC's American Bandstand.","popularity":16.49,"poster_path":"/d9dv1TA2jLcMN4R9g9qj4VX8jGQ.jpg","first_air_date":"1965-01-12","name":"Hullabaloo","vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"5258037519c29531db385807","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/yGQvs3Cji7Rg9YI9aYqEm3qL9Cl.jpg","genre_ids":[10764],"id":511,"origin_country":["DE"],"original_language":"de","original_name":"Beat-Club","overview":"Beat-Club was a German music program that ran from September 1965 to December 1972. It is notable for being the first German show to be based around popular music, and featured artists such as The Equals, Grateful Dead, Zager and Evans, Cream, Frank Zappa, The Rolling Stones, Gene Pitney, Ten Years After, Rory Gallagher, Led Zeppelin, Jimi Hendrix, Ike \u0026 Tina Turner, The Who, Black Sabbath, Harry Nilsson, David Bowie, The Bee Gees, The Beach Boys, Chicago, The Doors, Kraftwerk and Robin Gibb in its seven-year run. In 1972, it was replaced by Musikladen.","popularity":7.024,"poster_path":"/aCIN9mMG0lY4kh31RJdaOzfFFDd.jpg","first_air_date":"1965-09-25","name":"Beat-Club","vote_average":8.3,"vote_count":3,"character":"Self","credit_id":"61dc933c6f8d9500411efd6a","episode_count":1,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":"/eKFBFOI2D3vwOjnM4n2gQpKKPAe.jpg","genre_ids":[10402],"id":517996,"original_language":"it","original_title":"Legends of Jazz con Ramsey Lewis Volume 3","overview":"","popularity":0.361,"poster_path":null,"release_date":"2006-12-12","title":"Legends of Jazz con Ramsey Lewis Volume 3","video":true,"vote_average":5.0,"vote_count":1,"credit_id":"5ad0eba4925141390a00cd90","department":"Production","job":"Executive Producer","media_type":"movie"}]}}
96 'Content-Type' => 'application/json;charset=utf-8',
97 'Authorization' => sprintf('Bearer %s', Configurator::$instance->get('tmdb'))
98 ];
99
100 // Append language preference to headers to avoid adult content
101 $headers['Accept-Language'] = 'en-US'; // Example: Set language preference to English
102
103 // Make the GET request with headers
104 $resp = EasyCurl::setHeaders($headers)->get(...$args);
105
106 // Check if response status is not 200 OK
107 if ($resp->getStatus() != 200) {
108 throw new TmdbClientException('Tmdb Client Error: ' . $resp->getBody(), $resp->getStatus());
109 }
110
111 // Check for adult content in response (assuming TMDB API supports such filtering)
112 $jsonResponse = json_decode($resp->getBody(), true);
113
114
115 return $resp;
116 }
117
118
119 public function getGenre(): array
120 {
121 return $this->request('genre/' . $this->getType() . '/list')['genres'] ?? [];