Tmdb Client Error: {"success":false,"status_code":11,"status_message":"Internal error: Something went wrong, contact TMDb.","combined_credits":{"cast":[{"adult":false,"backdrop_path":"/gpJ5jPvDujnzzUqegz5yAUt9KGU.jpg","genre_ids":[35,10767],"id":62024,"origin_country":["BE"],"original_language":"nl","original_name":"Schalkse Ruiters","overview":"Schalkse Ruiters was a successful Flemish TV show that aired from 1996 to 1998.","popularity":2.369,"poster_path":"/oYXMDrqfEZgSyLeXu5UZY6b6ELy.jpg","first_air_date":"1996-12-01","name":"Schalkse Ruiters","vote_average":9.0,"vote_count":2,"character":"Himself","credit_id":"54dc77d4c3a3682f240033a4","episode_count":23,"media_type":"tv"},{"adult":false,"backdrop_path":"/pREdsJNHrwVn2EkcWl5vLfS66Cl.jpg","genre_ids":[35],"id":131587,"origin_country":["BE"],"original_language":"nl","original_name":"Is er een dokter in de zaal?","overview":"","popularity":9.98,"poster_path":"/mIlBtyTnl6JFJPzYTUztnxj1PnP.jpg","first_air_date":"2019-05-02","name":"Is there a doctor in the room?","vote_average":0.0,"vote_count":0,"character":"","credit_id":"658768fd5aba3266e7b94add","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/6QYawliladc3NiEb9mK5Omn5UWK.jpg","genre_ids":[10767,35],"id":154509,"origin_country":["BE"],"original_language":"nl","original_name":"Vrede op aarde","overview":"","popularity":9.376,"poster_path":"/uRRcE1KTpRpPyOCJqT6uVSrmyph.jpg","first_air_date":"2017-12-25","name":"Vrede op aarde","vote_average":0.0,"vote_count":0,"character":"","credit_id":"658b15acae6f092e5855e458","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/sF9BWA713f0PbFtPZNySIczO5x6.jpg","genre_ids":[10764],"id":131495,"origin_country":["BE"],"original_language":"nl","original_name":"James De Musical","overview":"","popularity":8.624,"poster_path":"/hapaR3sCDSU08f0mq82HUbjsHWi.jpg","first_air_date":"2021-11-25","name":"James De Musical","vote_average":6.0,"vote_count":1,"character":"Self","credit_id":"65bbe06fc144dd017cff361a","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/n9yQVYcVFqFnaFWAU8ERQOo3hs.jpg","genre_ids":[10763,10764],"id":197540,"origin_country":["BE"],"original_language":"nl","original_name":"De dag van vandaag","overview":"","popularity":7.205,"poster_path":"/hsimPQzLl2RsMa3vwGk4wHQH29N.jpg","first_air_date":"2022-04-18","name":"De dag van vandaag","vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"66227d64e640d60186c49888","episode_count":3,"media_type":"tv"},{"adult":false,"backdrop_path":"/dcQheNnoQsLTj4BIUWhb1AAeXMA.jpg","genre_ids":[35],"id":51975,"origin_country":["BE"],"original_language":"nl","original_name":"Scheire en de Schepping","overview":"Lieven Scheire wanders like a forensic blood hound on planet science and all her secondary planets. Faithfully assisted by Googleman and his one-man house orchestra Stijn Cole.","popularity":12.695,"poster_path":"/1Un2BOu6HEsXmR2nzGKLROf39Kg.jpg","first_air_date":"2012-04-15","name":"Scheire and the Creation","vote_average":8.3,"vote_count":3,"character":"Self","credit_id":"5db579cbd40d4c0014fda80d","episode_count":4,"media_type":"tv"},{"adult":false,"backdrop_path":"/vlqNsWAQbdnJQDMGe4LOnpUKn4p.jpg","genre_ids":[10751,35],"id":55546,"origin_country":["BE"],"original_language":"nl","original_name":"De Slimste Mens ter Wereld","overview":"","popularity":118.325,"poster_path":"/7UdVk8oKB3TbBDGRlB0dSzVyf8F.jpg","first_air_date":"2003-09-01","name":"De Slimste Mens ter Wereld","vote_average":7.75,"vote_count":8,"character":"Self - Participant","credit_id":"66ee20ea0ea80d1fe38d024e","episode_count":5,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":105093,"origin_country":["BE"],"original_language":"nl","original_name":"Twee tot de zesde macht","overview":"","popularity":20.804,"poster_path":"/xDMwd36u6dCi2eekrQfLv0LMfHV.jpg","first_air_date":"2012-10-21","name":"Twee tot de zesde macht","vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"67071051108c036adf65d965","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":"/sUT22ZBZ7GBlN8v6xWdrCnWPDm.jpg","genre_ids":[35,10767],"id":157126,"origin_country":["BE"],"original_language":"nl","original_name":"Control Pedro","overview":"","popularity":0.526,"poster_path":"/sGaYLNEaCmatb3IWlKD3WUlXyze.jpg","first_air_date":"2017-04-20","name":"Control Pedro","vote_average":0.0,"vote_count":0,"character":"","credit_id":"674225cbcfd24c3a7aab46a6","episode_count":1,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":"/mfS9lwX7zwAQw8qjgpkdz9k69yz.jpg","genre_ids":[35],"id":65757,"origin_country":["BE"],"original_language":"nl","original_name":"Clinch","overview":"A six-part series that revolves around the ultimate confrontation of three archetypal main characters who brazenly smash into each other's lives. In each episode, the three meet each other for the first time. Fate brings them together in a precarious situation where they are completely dependent on each other. Each episode revolves around one location, one situation: a car accident , a tour of a master house that is for sale, too long a driving lesson, too great a hospital room, a lift attached and detached as a springboard to escape reality .","popularity":1.028,"poster_path":"/z9omyTWjcrfK95rJc7ioJTVlCmS.jpg","first_air_date":"2016-02-24","name":"Clinch","vote_average":8.3,"vote_count":3,"credit_id":"60f5e6984c25921a80e24464","department":"Production","episode_count":6,"job":"Producer","media_type":"tv"},{"adult":false,"backdrop_path":"/fAVgMMGKR0vZ6z7Bm3YPlHCzR13.jpg","genre_ids":[9648,18],"id":133979,"origin_country":["BE"],"original_language":"nl","original_name":"Twee Zomers","overview":"A group of friends get together thirty years after one of the group members died in a tragic accident while they were on holiday. What was supposed to be a relaxing vacation changes rapidly into a nightmare, when some of the friends are blackmailed with footage from that terrible week three decades ago.","popularity":13.766,"poster_path":"/2xzkqEdrKuXn0rTYAe88CFWOWo4.jpg","first_air_date":"2022-02-06","name":"Two Summers","vote_average":6.9,"vote_count":30,"credit_id":"63a73bfeb3316b00cfbc3506","department":"Writing","episode_count":6,"job":"Writer","media_type":"tv"},{"adult":false,"backdrop_path":"/fAVgMMGKR0vZ6z7Bm3YPlHCzR13.jpg","genre_ids":[9648,18],"id":133979,"origin_country":["BE"],"original_language":"nl","original_name":"Twee Zomers","overview":"A group of friends get together thirty years after one of the group members died in a tragic accident while they were on holiday. What was supposed to be a relaxing vacation changes rapidly into a nightmare, when some of the friends are blackmailed with footage from that terrible week three decades ago.","popularity":13.766,"poster_path":"/2xzkqEdrKuXn0rTYAe88CFWOWo4.jpg","first_air_date":"2022-02-06","name":"Two Summers","vote_average":6.9,"vote_count":30,"credit_id":"63a73bb1a5743d008b8ddacb","department":"Directing","episode_count":6,"job":"Director","media_type":"tv"},{"adult":false,"backdrop_path":"/ggrT1sIOgVQtba2lyvkoUKWcrB5.jpg","genre_ids":[9648,10764],"id":14784,"origin_country":["NL"],"original_language":"nl","original_name":"Wie is de Mol?","overview":"Ten candidates have to complete assignments to earn money. However, one of the group members is the Mole. The Mole's goal is to make the assignments fail and keep the amount of money earned as low as possible. The other candidates do not know who the Mole is and need to unmask them. At the end of every episode, the candidates take a multiple-choice test about the mole's identity. The person who gives the least amount of correct answers is \"executed\" and must leave. This process continues until only two contestants and the Mole remain. The winner is the person with the most correct answers in the final test and they get all of the money earned in previous stages of the game.","popularity":19.196,"poster_path":"/fkEsscRSAWuaYi8ijbTiceGbVTz.jpg","first_air_date":"1999-11-19","name":"Wie is de Mol?","vote_average":8.1,"vote_count":14,"credit_id":"525835b4760ee36aaa93513d","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/gpJ5jPvDujnzzUqegz5yAUt9KGU.jpg","genre_ids":[35,10767],"id":62024,"origin_country":["BE"],"original_language":"nl","original_name":"Schalkse Ruiters","overview":"Schalkse Ruiters was a successful Flemish TV show that aired from 1996 to 1998.","popularity":2.369,"poster_path":"/oYXMDrqfEZgSyLeXu5UZY6b6ELy.jpg","first_air_date":"1996-12-01","name":"Schalkse Ruiters","vote_average":9.0,"vote_count":2,"credit_id":"54dc769192514141ec000d7e","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/dKYsFIPUvYXZxseTCf1Gp9Ul7nG.jpg","genre_ids":[18,80],"id":79876,"origin_country":["BE"],"original_language":"nl","original_name":"Over water","overview":"John Beckers gains one last chance from his wife Marjan and their two children to get his life back on track. After a visit to rehab, John starts his new job at the freight company of his father-in-law. The port of Antwerp is a whole new world for the former TV star. It’s a harsh environment, but also one with its own rules and traditions. John fights his old demons as well as new temptations, but quickly enters a dangerous arena but also a very lucrative trade of the docks: cocaine. John Beckers came to work at the port, but finds increasingly extreme ways to make the port work for him.","popularity":5.491,"poster_path":"/dBwftNlRGHcCMEWzAbl8dg0APZ7.jpg","first_air_date":"2018-12-16","name":"Over Water","vote_average":6.4,"vote_count":16,"credit_id":"5b0ce74b9251417bdd005497","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/6sMixmLPHHde8WH4gWnGHKHPzW8.jpg","genre_ids":[10764],"id":7404,"origin_country":["US"],"original_language":"en","original_name":"The Mole","overview":"Players working as a team complete a series of difficult physical and psychological tests, each worth a set amount of money. One of the players, however, is a \"Mole\" or saboteur, whose goal is to foil the efforts of the other players without revealing his or her identity. At the end of each episode, the group is given a quiz on The Mole's identity. The player who knows the least information about The Mole is then immediately sent home. In the final episode, The Mole is revealed and the one remaining player wins the jackpot, up to $1,000,000.","popularity":10.949,"poster_path":"/dmnT9QGvODH5RBlRYs4A3ztEMGU.jpg","first_air_date":"2001-01-09","name":"The Mole","vote_average":6.8,"vote_count":8,"credit_id":"5ba6aea1c3a3680e550160f1","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/5ORPv3AHSSxuuMmZ7kgyGg9g7mH.jpg","genre_ids":[18],"id":42835,"origin_country":["BE"],"original_language":"nl","original_name":"De Parelvissers","overview":"","popularity":6.672,"poster_path":"/svtcltttWyge7bP3PPpUw2582ry.jpg","first_air_date":"2006-02-26","name":"De Parelvissers","vote_average":7.0,"vote_count":2,"credit_id":"5c2a3f010e0a26541c384c96","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/kf8uuGsKq1iipuFHpJOacrGPSy9.jpg","genre_ids":[35,18],"id":55682,"origin_country":[],"original_language":"nl","original_name":"Met man en macht","overview":"","popularity":0.574,"poster_path":"/e82CyAVg8BxQfQnIKTKnDWgLwKv.jpg","first_air_date":"2013-01-28","name":"Met man en macht","vote_average":6.5,"vote_count":2,"credit_id":"5c2b4cf7c3a3682919a0e0a1","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/hvUUWbmF6E9KVDJrxx2rEr4KT4I.jpg","genre_ids":[10764,10751],"id":3233,"origin_country":["BE"],"original_language":"nl","original_name":"De Mol","overview":"The Mole is a reality television game show which was originally created in 1999 by Woestijnvis. It was conceived by Michiel Devlieger, Bart de Pauw, Tom Lenaerts and Michel Vanhove, and won the famous Rose d'Or in Montreux, Switzerland, in 2000. The format has been licensed in 40 countries from all around the world. The show aired on TV1 (now VRT 1) for 3 reasons between 1998 and 2003; in 2016 it was revived and moved to VIER (now Play4).","popularity":20.238,"poster_path":"/5OZX93U21IX4RfkMRPmLVqbAfX0.jpg","first_air_date":"1998-12-06","name":"De Mol","vote_average":7.4,"vote_count":12,"credit_id":"609ee7acb234b9002942c337","department":"Creator","job":"Creator","media_type":"tv"},{"adult":false,"backdrop_path":"/fAVgMMGKR0vZ6z7Bm3YPlHCzR13.jpg","genre_ids":[9648,18],"id":133979,"origin_country":["BE"],"original_language":"nl","original_name":"Twee Zomers","overview":"A group of friends get together thirty years after one of the group members died in a tragic accident while they were on holiday. What was supposed to be a relaxing vacation changes rapidly into a nightmare, when some of the friends are blackmailed with footage from that terrible week three decades ago.","popularity":13.766,"poster_path":"/2xzkqEdrKuXn0rTYAe88CFWOWo4.jpg","first_air_date":"2022-02-06","name":"Two Summers","vote_average":6.9,"vote_count":30,"credit_id":"61a5ffdbbe4b36006a731d2f","department":"Creator","job":"Creator","media_type":"tv"}]}}
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'] ?? [];