diff options
-rw-r--r-- | tests/tmdb/Makefile.am | 5 | ||||
-rw-r--r-- | tests/tmdb/data/casts.txt | 1 | ||||
-rw-r--r-- | tests/tmdb/data/images.txt | 1 | ||||
-rw-r--r-- | tests/tmdb/data/keywords.txt | 1 | ||||
-rw-r--r-- | tests/tmdb/data/multiple.txt | 1 | ||||
-rw-r--r-- | tests/tmdb/data/releases.txt | 1 | ||||
-rw-r--r-- | tests/tmdb/data/sherlock.ini | 36 | ||||
-rw-r--r-- | tests/tmdb/test_tmdb_full_resolution.c | 12 |
8 files changed, 14 insertions, 44 deletions
diff --git a/tests/tmdb/Makefile.am b/tests/tmdb/Makefile.am index cd2b936..9baa8c8 100644 --- a/tests/tmdb/Makefile.am +++ b/tests/tmdb/Makefile.am @@ -87,15 +87,12 @@ test_tmdb_full_resolution_CFLAGS = \ # Distribute the tests data: dist_noinst_DATA = \ - data/casts.txt \ data/configuration.txt \ data/details.txt \ data/empty-data.ini \ data/fast-by-id.ini \ - data/images.txt \ - data/keywords.txt \ + data/multiple.txt \ data/no-details.ini \ - data/releases.txt \ data/search.txt \ data/sherlock.ini diff --git a/tests/tmdb/data/casts.txt b/tests/tmdb/data/casts.txt deleted file mode 100644 index 84bd4fa..0000000 --- a/tests/tmdb/data/casts.txt +++ /dev/null @@ -1 +0,0 @@ -{"id":10528,"cast":[{"id":53714,"name":"Rachel McAdams","character":"Irene Adler","order":1,"profile_path":"/vvbr4wKIRbfiH4u7aXorobKLai5.jpg"},{"id":9642,"name":"Jude Law","character":"Dr. John Watson","order":2,"profile_path":"/n6mragkZ8jHNLi9nwSETPxxf8z0.jpg"},{"id":2983,"name":"Mark Strong","character":"Lord Blackwood","order":3,"profile_path":"/vC1a35KBxx8f2rkMKyaik7bTOud.jpg"},{"id":17521,"name":"Kelly Reilly","character":"Mary","order":4,"profile_path":"/tGOT6XkJSVD6LzF8tAPjWf4ZMzm.jpg"},{"id":10207,"name":"William Hope","character":"John Standish","order":5,"profile_path":"/46N4dSYShHnRTcbqD7Fzfjnmvvq.jpg"},{"id":1665,"name":"Eddie Marsan","character":"Inspector Lestrade","order":6,"profile_path":"/oxLYpxVIbYeQvQ5os32wCOZLtDO.jpg"},{"id":112692,"name":"Robert Maillet","character":"Dredger","order":7,"profile_path":null},{"id":11855,"name":"Geraldine James","character":"Mrs. Hudson","order":8,"profile_path":"/uRapxZIWwfcmOl2rzlz77oCC1e4.jpg"},{"id":84865,"name":"William Houston","character":"Constable Clark","order":9,"profile_path":null},{"id":3223,"name":"Robert Downey Jr.","character":"Sherlock Holmes","order":0,"profile_path":"/o6ffyv7CYsEVpdd4jkmYT7y41Xn.jpg"}],"crew":[{"id":956,"name":"Guy Ritchie","department":"Directing","job":"Director","profile_path":"/eatQVmnFuHboJseFrYft1BIIc.jpg"},{"id":71244,"name":"Anthony Peckham","department":"Writing","job":"Screenplay","profile_path":null},{"id":11092,"name":"Simon Kinberg","department":"Writing","job":"Screenplay","profile_path":null},{"id":41289,"name":"Lionel Wigram","department":"Writing","job":"Screenstory","profile_path":null},{"id":112689,"name":"Michael Robert Johnson","department":"Writing","job":"Screenstory","profile_path":null},{"id":25167,"name":"Arthur Conan Doyle","department":"Writing","job":"Characters","profile_path":"/wkfHlJ56PpSqui0Cjhnahs3sfZg.jpg"},{"id":947,"name":"Hans Zimmer","department":"Sound","job":"Music","profile_path":"/7IjJpvGtCfY0DsritmfCh2iX9I4.jpg"},{"id":1296,"name":"Bruce Berman","department":"Production","job":"Executive Producer","profile_path":null},{"id":17630,"name":"Michael Tadross","department":"Production","job":"Executive Producer","profile_path":null},{"id":29018,"name":"Dana Goldberg","department":"Production","job":"Executive Producer","profile_path":null},{"id":37162,"name":"Susan Downey","department":"Production","job":"Producer","profile_path":null},{"id":112690,"name":"Dan Lin","department":"Production","job":"Producer","profile_path":null},{"id":1091,"name":"Joel Silver","department":"Production","job":"Producer","profile_path":null},{"id":41289,"name":"Lionel Wigram","department":"Production","job":"Producer","profile_path":null},{"id":112691,"name":"Peter Eskelsen","department":"Production","job":"Producer","profile_path":null},{"id":63127,"name":"Steve Clark-Hall","department":"Production","job":"Producer","profile_path":null},{"id":1301,"name":"Philippe Rousselot","department":"Crew","job":"Cinematography","profile_path":null},{"id":112689,"name":"Michael Robert Johnson","department":"Writing","job":"Screenplay","profile_path":null}]}
\ No newline at end of file diff --git a/tests/tmdb/data/images.txt b/tests/tmdb/data/images.txt deleted file mode 100644 index 9fd3fce..0000000 --- a/tests/tmdb/data/images.txt +++ /dev/null @@ -1 +0,0 @@ -{"id":10528,"backdrops":[{"file_path":"/uM414ugc1B910bTvGEIzsucfMMC.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":7.357142857142857,"vote_count":7},{"file_path":"/r8V954pQMDFzYFdBh2WC1Y3pnN3.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":7.2,"vote_count":5},{"file_path":"/8oOjtbJMPLVAIsQdxcgQ46Pkmhz.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":7.136363636363637,"vote_count":11},{"file_path":"/wqQXp7y3JcYU0dvmlsl4RWcZrWO.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":7.0,"vote_count":6},{"file_path":"/glY2hrSN0WqEPQDC8iqfCCvUyfA.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":6.611111111111111,"vote_count":9},{"file_path":"/kbkgAiJPUWmLzCJwPh41gNQeG3F.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":6.5,"vote_count":5},{"file_path":"/k8nSKp54r0j1uy9QwM9RaD3goah.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":6.166666666666667,"vote_count":6},{"file_path":"/5nmIwOfGdPcrNuWmJZemnzuZdKD.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":5.333333333333333,"vote_count":3},{"file_path":"/cMXTD0Iwwll0NKZqtSb3lYWGQ0S.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":5.0,"vote_count":3},{"file_path":"/fRT49QJkQxv5rBtyCAeaokjyzRL.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":4.666666666666667,"vote_count":3},{"file_path":"/53FIlh34An70sDCzvlaFPTk114C.jpg","width":1280,"height":720,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":4.25,"vote_count":2},{"file_path":"/yQvYo8dGpyOAAiG2B39jQercbSZ.jpg","width":1920,"height":1080,"iso_639_1":null,"aspect_ratio":1.78,"vote_average":4.125,"vote_count":4}],"posters":[{"file_path":"/22ngurXbLqab7Sko6aTSdwOCe5W.jpg","width":1000,"height":1500,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":7.136363636363637,"vote_count":11},{"file_path":"/lEV8cMuHtMWYqw1HnRCmcM8VeAq.jpg","width":675,"height":1000,"iso_639_1":"en","aspect_ratio":0.68,"vote_average":6.5,"vote_count":17},{"file_path":"/c2ylpAZYgjhNPLm6gJaWXiXIFaY.jpg","width":1000,"height":1500,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":6.03125,"vote_count":16},{"file_path":"/704ImfEel0BPPIPcowZbahji2Vb.jpg","width":3220,"height":4425,"iso_639_1":"es","aspect_ratio":0.73,"vote_average":5.25,"vote_count":2},{"file_path":"/c0yS2oinfG6AqKW9V4PWF998VhI.jpg","width":950,"height":1419,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":4.928571428571429,"vote_count":14},{"file_path":"/Vttr3YRuZ5Eu5TYdHp8ipf2dEl.jpg","width":1000,"height":1500,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":4.5625,"vote_count":8},{"file_path":"/iX9YYPWAN9UVru4JMdxk2lGEmfZ.jpg","width":800,"height":1171,"iso_639_1":"ru","aspect_ratio":0.68,"vote_average":4.3,"vote_count":5},{"file_path":"/s2mzTB2dbExPnTswiSPOczTEIKp.jpg","width":853,"height":1200,"iso_639_1":"cs","aspect_ratio":0.71,"vote_average":4.25,"vote_count":2},{"file_path":"/tla7PAr8HRciUtQ0zBggmOU52eK.jpg","width":1750,"height":2500,"iso_639_1":"en","aspect_ratio":0.7,"vote_average":4.2,"vote_count":5},{"file_path":"/tJRwUXWRGXxOuJ0ssdS8XfYmSJK.jpg","width":1297,"height":2000,"iso_639_1":"en","aspect_ratio":0.65,"vote_average":3.8333333333333335,"vote_count":3},{"file_path":"/xlWqQvCaxzMLNwY9lCWYAfBCtJl.jpg","width":794,"height":1134,"iso_639_1":"en","aspect_ratio":0.7,"vote_average":3.6666666666666665,"vote_count":3},{"file_path":"/kpxMPOfIN72gi96mPV5i8ZXIc36.jpg","width":675,"height":1000,"iso_639_1":"pl","aspect_ratio":0.68,"vote_average":2.75,"vote_count":2},{"file_path":"/yU1qarHPNyA72l4Fy0XJFuVU0l9.jpg","width":1356,"height":2081,"iso_639_1":"pl","aspect_ratio":0.65,"vote_average":2.25,"vote_count":2},{"file_path":"/aCyI7PiYufbMJn2KTOH7gWvtq2f.jpg","width":1356,"height":2081,"iso_639_1":"en","aspect_ratio":0.65,"vote_average":0.75,"vote_count":2},{"file_path":"/ezAkXkuTYiWPjYhy3y7DtBE0j5s.jpg","width":1000,"height":1500,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":0.5,"vote_count":2},{"file_path":"/ezAkXkuTYiWPjYhy3y7DtBE0j5s.jpg","width":1000,"height":1500,"iso_639_1":"en","aspect_ratio":0.67,"vote_average":0.5,"vote_count":2},{"file_path":"/i3sC5ZOepzCikV9LZrNa8ukRLlc.jpg","width":533,"height":789,"iso_639_1":"es","aspect_ratio":0.68,"vote_average":0.5,"vote_count":1},{"file_path":"/ioEOm3dvcA0xK4DsJtyS7FM5OJl.jpg","width":1471,"height":2122,"iso_639_1":"bg","aspect_ratio":0.69,"vote_average":0.5,"vote_count":1},{"file_path":"/bJdolsMl9eGgtHH89ZirLvFarHn.jpg","width":1067,"height":1577,"iso_639_1":"es","aspect_ratio":0.68,"vote_average":0.5,"vote_count":1},{"file_path":"/clVy7zGIAhrOqwojV6TYuwEzJvP.jpg","width":1500,"height":2216,"iso_639_1":"en","aspect_ratio":0.68,"vote_average":0.5,"vote_count":3},{"file_path":"/pk380DUzkYqe0eFonuCVmiMquhm.jpg","width":1500,"height":2211,"iso_639_1":"en","aspect_ratio":0.68,"vote_average":0.5,"vote_count":3},{"file_path":"/7bkIR16b6vtfF6gHwuIbizqURq6.jpg","width":1600,"height":2366,"iso_639_1":"en","aspect_ratio":0.68,"vote_average":0.5,"vote_count":3},{"file_path":"/sGYx7voBSzgo3Y3SbyrMvCFzdY7.jpg","width":1600,"height":2366,"iso_639_1":"en","aspect_ratio":0.68,"vote_average":0.5,"vote_count":3}]}
\ No newline at end of file diff --git a/tests/tmdb/data/keywords.txt b/tests/tmdb/data/keywords.txt deleted file mode 100644 index 0b33aaa..0000000 --- a/tests/tmdb/data/keywords.txt +++ /dev/null @@ -1 +0,0 @@ -{"id":10528,"keywords":[{"id":703,"name":"detective"},{"id":770,"name":"scotland yard"},{"id":1909,"name":"coffin"},{"id":18220,"name":"grave"},{"id":4252,"name":"black magic"},{"id":5638,"name":"arrest"},{"id":9104,"name":"partner"},{"id":9401,"name":"sherlock holmes"},{"id":15595,"name":"death"},{"id":9826,"name":"murder"},{"id":15638,"name":"escape"},{"id":11855,"name":"pentagram"},{"id":33514,"name":"clue"},{"id":10028,"name":"steampunk"},{"id":155846,"name":"1890s"}]}
\ No newline at end of file diff --git a/tests/tmdb/data/multiple.txt b/tests/tmdb/data/multiple.txt new file mode 100644 index 0000000..e2dee41 --- /dev/null +++ b/tests/tmdb/data/multiple.txt @@ -0,0 +1 @@ +{"adult":false,"backdrop_path":"/uM414ugc1B910bTvGEIzsucfMMC.jpg","belongs_to_collection":{"id":102322,"name":"Sherlock Holmes Collection","poster_path":"/bsUN9Ph1nUituteKWOhPQGguNXt.jpg","backdrop_path":"/bZLK5gylAWabHlPrK1wC0bqVAju.jpg"},"budget":90000000,"genres":[{"id":28,"name":"Action"},{"id":12,"name":"Adventure"},{"id":35,"name":"Comedy"},{"id":80,"name":"Crime"},{"id":18,"name":"Drama"},{"id":9648,"name":"Mystery"},{"id":53,"name":"Thriller"}],"homepage":"http://sherlock-holmes-movie.warnerbros.com/","id":10528,"imdb_id":"tt0988045","original_title":"Sherlock Holmes","overview":"Eccentric consulting detective Sherlock Holmes and Doctor John Watson battle to bring down a new nemesis and unravel a deadly plot that could destroy England.","popularity":5.607090244297,"poster_path":"/22ngurXbLqab7Sko6aTSdwOCe5W.jpg","production_companies":[{"name":"Warner Bros Pictures","id":4209},{"name":"Village Roadshow Pictures","id":79},{"name":"Silver Pictures","id":1885}],"production_countries":[{"iso_3166_1":"DE","name":"Germany"},{"iso_3166_1":"GB","name":"United Kingdom"},{"iso_3166_1":"US","name":"United States of America"}],"release_date":"2009-12-25","revenue":524028679,"runtime":128,"spoken_languages":[{"iso_639_1":"en","name":"English"},{"iso_639_1":"fr","name":"Français"}],"status":"Released","tagline":"Nothing escapes him.","title":"Sherlock Holmes","vote_average":6.6,"vote_count":2178,"releases":{"countries":[{"iso_3166_1":"US","certification":"PG-13","release_date":"2009-12-25"},{"iso_3166_1":"DK","certification":"15","release_date":"2009-12-25"},{"iso_3166_1":"FR","certification":"","release_date":"2010-02-03"},{"iso_3166_1":"DE","certification":"12","release_date":"2010-01-28"},{"iso_3166_1":"HU","certification":"16","release_date":"2010-01-07"},{"iso_3166_1":"BG","certification":"C","release_date":"2010-01-01"},{"iso_3166_1":"NL","certification":"12","release_date":"2009-01-07"},{"iso_3166_1":"GB","certification":"12A","release_date":"2009-12-26"}]},"casts":{"cast":[{"id":53714,"name":"Rachel McAdams","character":"Irene Adler","order":2,"cast_id":3,"profile_path":"/qLJgs8pgccWly2Jc01baLBoAdz2.jpg"},{"id":9642,"name":"Jude Law","character":"Dr. John Watson","order":1,"cast_id":4,"profile_path":"/4077Cyuo1mw53u1gNjLyQkqeZN0.jpg"},{"id":2983,"name":"Mark Strong","character":"Lord Blackwood","order":3,"cast_id":5,"profile_path":"/bFo6UXFjNLl18UMM2GmmpnL5feK.jpg"},{"id":17521,"name":"Kelly Reilly","character":"Mary","order":7,"cast_id":6,"profile_path":"/utp6IT1cLk80RgJzehBIWkSQ8FJ.jpg"},{"id":10207,"name":"William Hope","character":"Ambassador Standish","order":11,"cast_id":7,"profile_path":"/46N4dSYShHnRTcbqD7Fzfjnmvvq.jpg"},{"id":1665,"name":"Eddie Marsan","character":"Inspector Lestrade","order":4,"cast_id":25,"profile_path":"/zcJ2W9BuiBPohtOkPFcYuFfCzji.jpg"},{"id":112692,"name":"Robert Maillet","character":"Dredger","order":5,"cast_id":26,"profile_path":"/cmP2CakmT1j0wXAjNEVQMGcR0cL.jpg"},{"id":11855,"name":"Geraldine James","character":"Mrs. Hudson","order":6,"cast_id":27,"profile_path":"/iHKFccX2qpSzMbhIBdfvr835MVg.jpg"},{"id":84865,"name":"William Houston","character":"Constable Clark","order":8,"cast_id":28,"profile_path":null},{"id":3223,"name":"Robert Downey Jr.","character":"Sherlock Holmes","order":0,"cast_id":30,"profile_path":"/iDtxXJXmJGU7jYRjsvePNQblHV1.jpg"},{"id":1292,"name":"James Fox","character":"Sir Thomas Rotheram","order":10,"cast_id":32,"profile_path":"/ioQ2RxdK9Th5cONWm0XN3NeedoZ.jpg"},{"id":37168,"name":"Hans Matheson","character":"Lord Coward","order":9,"cast_id":40,"profile_path":"/4MQAI6g3AabzUDm29UbadjjWteL.jpg"},{"id":19901,"name":"Clive Russell","character":"Captain Tanner","order":12,"cast_id":41,"profile_path":"/7Q5X0Kd1Dt1gubdrARC3XFc1fDc.jpg"},{"id":1270734,"name":"Oran Gurel","character":"Reordan","order":13,"cast_id":42,"profile_path":null},{"id":1121204,"name":"David Garrick","character":"McMurdo","order":14,"cast_id":43,"profile_path":null},{"id":1156243,"name":"Kylie Hutchinson","character":"Maid","order":15,"cast_id":44,"profile_path":null},{"id":202760,"name":"Andrew Brooke","character":"Guard Captain","order":16,"cast_id":45,"profile_path":"/vXyNaZWVYGWQCXYmH7hVRaRAyVP.jpg"},{"id":1227670,"name":"Tom Watt","character":"Carriage Driver","order":17,"cast_id":46,"profile_path":null},{"id":1270741,"name":"John Kearney","character":"Carriage Driver","order":18,"cast_id":47,"profile_path":null},{"id":174524,"name":"Sebastian Abineri","character":"Coach Driver","order":19,"cast_id":48,"profile_path":null},{"id":1270742,"name":"Jonathan Gabriel Robbins","character":"Guard","order":20,"cast_id":49,"profile_path":null},{"id":1187835,"name":"James A. Stephens","character":"Captain Philips","order":21,"cast_id":50,"profile_path":null},{"id":237767,"name":"Terry Taplin","character":"Groundskeeper","order":22,"cast_id":51,"profile_path":null},{"id":33399,"name":"Bronagh Gallagher","character":"Palm Reader","order":23,"cast_id":52,"profile_path":"/h44VuQ4yxA9ssITldXngDKSLoBQ.jpg"},{"id":1270828,"name":"Ed Tolputt","character":"Anonymous Man","order":24,"cast_id":53,"profile_path":null},{"id":1000873,"name":"Joe Egan","character":"Big Man","order":25,"cast_id":54,"profile_path":null},{"id":109322,"name":"Jefferson Hall","character":"Young Guard","order":26,"cast_id":55,"profile_path":null},{"id":221857,"name":"Miles Jupp","character":"Waiter","order":27,"cast_id":56,"profile_path":null},{"id":1270829,"name":"Marn Davies","character":"Police Officer","order":28,"cast_id":57,"profile_path":null},{"id":59082,"name":"Andrew Greenough","character":"Prison Guard","order":29,"cast_id":58,"profile_path":null},{"id":63362,"name":"Ned Dennehy","character":"Man with Roses","order":30,"cast_id":59,"profile_path":null},{"id":1270830,"name":"Martin Ewens","character":"Removable Man","order":31,"cast_id":60,"profile_path":null},{"id":1270831,"name":"Amanda Grace Johnson","character":"Young Woman Sacrifice","order":32,"cast_id":61,"profile_path":null},{"id":1266585,"name":"James Greene","character":"Governor","order":33,"cast_id":62,"profile_path":null},{"id":1270832,"name":"David Emmings","character":"Grave Policeman","order":34,"cast_id":63,"profile_path":null},{"id":1255828,"name":"Ben Cartwright","character":"Grave Policeman","order":35,"cast_id":64,"profile_path":null},{"id":208451,"name":"Chris Sunley","character":"Grave Policeman","order":36,"cast_id":65,"profile_path":null},{"id":62106,"name":"Michael Jenn","character":"Preacher","order":37,"cast_id":66,"profile_path":null},{"id":1270833,"name":"Timothy O'Hara","character":"Porter / Smith","order":38,"cast_id":67,"profile_path":null},{"id":974063,"name":"Guy Williams","character":"Golden Dawn Envoy","order":39,"cast_id":68,"profile_path":null},{"id":1230574,"name":"Peter Miles","character":"Thug","order":40,"cast_id":69,"profile_path":null},{"id":1034905,"name":"Jonathan Bridge","character":"Man Carrying Tray of Fish in Market (uncredited)","order":41,"cast_id":70,"profile_path":null},{"id":1030253,"name":"Sam Creed","character":"Thug (uncredited)","order":42,"cast_id":71,"profile_path":"/grHsE56RRIsmzXe3i7W7ORaV5rG.jpg"},{"id":1270834,"name":"Radu Andrei Cucu","character":"Frenzy Man (uncredited)","order":43,"cast_id":72,"profile_path":null},{"id":1031711,"name":"James Currie","character":"Prison Guard (uncredited)","order":44,"cast_id":73,"profile_path":null},{"id":1270836,"name":"Jason Daly","character":"Man with Dog (uncredited)","order":45,"cast_id":74,"profile_path":null},{"id":1270837,"name":"Paul J. Dove","character":"Bishop (uncredited)","order":46,"cast_id":75,"profile_path":null},{"id":1270838,"name":"Neil Findlater","character":"Photographer (uncredited)","order":47,"cast_id":76,"profile_path":null},{"id":93715,"name":"Kas Graham","character":"Dog Fighter (uncredited)","order":48,"cast_id":77,"profile_path":null},{"id":1270839,"name":"Thomas Kadman","character":"Pallbearer (uncredited)","order":49,"cast_id":78,"profile_path":null},{"id":1270840,"name":"Brendan McCoy","character":"Fishmonger (uncredited)","order":50,"cast_id":79,"profile_path":null},{"id":1270841,"name":"Matthew Radway","character":"Barman (uncredited)","order":51,"cast_id":80,"profile_path":null},{"id":1209051,"name":"Robert Stone","character":"Prizefighter (uncredited)","order":52,"cast_id":81,"profile_path":null},{"id":1209055,"name":"John Warman","character":"Policeman (uncredited)","order":53,"cast_id":82,"profile_path":null}],"crew":[{"id":956,"name":"Guy Ritchie","department":"Directing","job":"Director","profile_path":"/eatQVmnFuHboJseFrYft1BIIc.jpg"},{"id":71244,"name":"Anthony Peckham","department":"Writing","job":"Screenplay","profile_path":null},{"id":11092,"name":"Simon Kinberg","department":"Writing","job":"Screenplay","profile_path":"/dTQJAyqo7SLY6pVpoAewAM8GxGY.jpg"},{"id":41289,"name":"Lionel Wigram","department":"Writing","job":"Screenstory","profile_path":null},{"id":112689,"name":"Michael Robert Johnson","department":"Writing","job":"Screenstory","profile_path":null},{"id":25167,"name":"Arthur Conan Doyle","department":"Writing","job":"Characters","profile_path":"/wkfHlJ56PpSqui0Cjhnahs3sfZg.jpg"},{"id":947,"name":"Hans Zimmer","department":"Sound","job":"Music","profile_path":"/7IjJpvGtCfY0DsritmfCh2iX9I4.jpg"},{"id":1296,"name":"Bruce Berman","department":"Production","job":"Executive Producer","profile_path":null},{"id":17630,"name":"Michael Tadross","department":"Production","job":"Executive Producer","profile_path":null},{"id":29018,"name":"Dana Goldberg","department":"Production","job":"Executive Producer","profile_path":null},{"id":37162,"name":"Susan Downey","department":"Production","job":"Producer","profile_path":null},{"id":112690,"name":"Dan Lin","department":"Production","job":"Producer","profile_path":null},{"id":1091,"name":"Joel Silver","department":"Production","job":"Producer","profile_path":"/1LIjLDXGRhwXohHL2jKhyvLv0rZ.jpg"},{"id":41289,"name":"Lionel Wigram","department":"Production","job":"Producer","profile_path":null},{"id":112691,"name":"Peter Eskelsen","department":"Production","job":"Producer","profile_path":null},{"id":63127,"name":"Steve Clark-Hall","department":"Production","job":"Producer","profile_path":null},{"id":112689,"name":"Michael Robert Johnson","department":"Writing","job":"Screenplay","profile_path":null},{"id":56917,"name":"James Herbert","department":"Editing","job":"Editor","profile_path":null},{"id":1301,"name":"Philippe Rousselot","department":"Camera","job":"Director of Photography","profile_path":null},{"id":36656,"name":"Sarah Greenwood","department":"Art","job":"Production Design","profile_path":null},{"id":17166,"name":"Jenny Beavan","department":"Costume & Make-Up","job":"Costume Design","profile_path":null},{"id":1018073,"name":"Reg Poerscout-Edgerton","department":"Production","job":"Casting","profile_path":null},{"id":1181554,"name":"Alex Bailey","department":"Camera","job":"Still Photographer","profile_path":null},{"id":190914,"name":"Elizabeth West","department":"Directing","job":"Script Supervisor","profile_path":null}]},"keywords":{"keywords":[{"id":703,"name":"detective"},{"id":770,"name":"scotland yard"},{"id":1909,"name":"coffin"},{"id":4252,"name":"black magic"},{"id":5638,"name":"arrest"},{"id":9104,"name":"partner"},{"id":9401,"name":"sherlock holmes"},{"id":9826,"name":"murder"},{"id":11855,"name":"pentagram"},{"id":33514,"name":"clue"},{"id":10028,"name":"steampunk"},{"id":155846,"name":"1890s"}]},"images":{"backdrops":[{"aspect_ratio":1.78,"file_path":"/uM414ugc1B910bTvGEIzsucfMMC.jpg","height":1080,"iso_639_1":null,"vote_average":"5.57915057915058","vote_count":11,"width":1920},{"aspect_ratio":1.78,"file_path":"/8oOjtbJMPLVAIsQdxcgQ46Pkmhz.jpg","height":1080,"iso_639_1":null,"vote_average":"5.47928262213977","vote_count":14,"width":1920},{"aspect_ratio":1.78,"file_path":"/wqQXp7y3JcYU0dvmlsl4RWcZrWO.jpg","height":1080,"iso_639_1":null,"vote_average":"5.46938775510204","vote_count":7,"width":1920},{"aspect_ratio":1.78,"file_path":"/glY2hrSN0WqEPQDC8iqfCCvUyfA.jpg","height":1080,"iso_639_1":null,"vote_average":"5.43114543114543","vote_count":11,"width":1920},{"aspect_ratio":1.78,"file_path":"/k8nSKp54r0j1uy9QwM9RaD3goah.jpg","height":1080,"iso_639_1":null,"vote_average":"5.40136054421769","vote_count":7,"width":1920},{"aspect_ratio":1.78,"file_path":"/r8V954pQMDFzYFdBh2WC1Y3pnN3.jpg","height":1080,"iso_639_1":null,"vote_average":"5.33199195171026","vote_count":8,"width":1920},{"aspect_ratio":1.78,"file_path":"/yQvYo8dGpyOAAiG2B39jQercbSZ.jpg","height":1080,"iso_639_1":null,"vote_average":"5.32781228433402","vote_count":6,"width":1920},{"aspect_ratio":1.78,"file_path":"/kbkgAiJPUWmLzCJwPh41gNQeG3F.jpg","height":1080,"iso_639_1":null,"vote_average":"5.27950310559006","vote_count":6,"width":1920},{"aspect_ratio":1.78,"file_path":"/5nmIwOfGdPcrNuWmJZemnzuZdKD.jpg","height":1080,"iso_639_1":null,"vote_average":"5.12605042016807","vote_count":5,"width":1920},{"aspect_ratio":1.78,"file_path":"/cMXTD0Iwwll0NKZqtSb3lYWGQ0S.jpg","height":1080,"iso_639_1":null,"vote_average":"5.11204481792717","vote_count":5,"width":1920},{"aspect_ratio":1.78,"file_path":"/fRT49QJkQxv5rBtyCAeaokjyzRL.jpg","height":1080,"iso_639_1":null,"vote_average":"5.09803921568627","vote_count":5,"width":1920},{"aspect_ratio":1.78,"file_path":"/53FIlh34An70sDCzvlaFPTk114C.jpg","height":720,"iso_639_1":"en","vote_average":"5.08884150675195","vote_count":4,"width":1280},{"aspect_ratio":1.78,"file_path":"/uJ5J1iDLxIeeQp3PMLUTK1ZBUGw.jpg","height":720,"iso_639_1":"en","vote_average":0.0,"vote_count":0,"width":1280}],"posters":[{"aspect_ratio":0.67,"file_path":"/22ngurXbLqab7Sko6aTSdwOCe5W.jpg","height":1500,"iso_639_1":"en","vote_average":"5.75493612078978","vote_count":19,"width":1000},{"aspect_ratio":0.68,"file_path":"/lEV8cMuHtMWYqw1HnRCmcM8VeAq.jpg","height":1000,"iso_639_1":"fr","vote_average":"5.54006968641115","vote_count":19,"width":675},{"aspect_ratio":0.67,"file_path":"/2BfdPFHJuasiOhYwwGHOe78apsn.jpg","height":1500,"iso_639_1":"de","vote_average":"5.38461538461539","vote_count":2,"width":1000},{"aspect_ratio":0.7,"file_path":"/fZ7g4hG8bT1LRblcnWR9FKzrRrE.jpg","height":857,"iso_639_1":"it","vote_average":5.3125,"vote_count":1,"width":600},{"aspect_ratio":0.7,"file_path":"/baM8E6CY2N4MHaUvszt7N41uwPZ.jpg","height":857,"iso_639_1":"it","vote_average":"5.30505952380952","vote_count":1,"width":600},{"aspect_ratio":0.67,"file_path":"/c2ylpAZYgjhNPLm6gJaWXiXIFaY.jpg","height":1500,"iso_639_1":"en","vote_average":5.2787456445993,"vote_count":19,"width":1000},{"aspect_ratio":0.69,"file_path":"/qtbKKyFYkxt2yeQt3mOqO7je2ZF.jpg","height":1009,"iso_639_1":"he","vote_average":"5.25297619047619","vote_count":1,"width":700},{"aspect_ratio":0.73,"file_path":"/704ImfEel0BPPIPcowZbahji2Vb.jpg","height":4425,"iso_639_1":"es","vote_average":"5.24542124542125","vote_count":2,"width":3220},{"aspect_ratio":0.71,"file_path":"/s2mzTB2dbExPnTswiSPOczTEIKp.jpg","height":1200,"iso_639_1":"cs","vote_average":"5.21611721611722","vote_count":2,"width":853},{"aspect_ratio":0.68,"file_path":"/iX9YYPWAN9UVru4JMdxk2lGEmfZ.jpg","height":1171,"iso_639_1":"ru","vote_average":5.1890756302521,"vote_count":5,"width":800},{"aspect_ratio":0.68,"file_path":"/kpxMPOfIN72gi96mPV5i8ZXIc36.jpg","height":1000,"iso_639_1":"pl","vote_average":"5.17216117216117","vote_count":2,"width":675},{"aspect_ratio":0.68,"file_path":"/bJdolsMl9eGgtHH89ZirLvFarHn.jpg","height":1577,"iso_639_1":"es","vote_average":"5.17113095238095","vote_count":1,"width":1067},{"aspect_ratio":0.68,"file_path":"/i3sC5ZOepzCikV9LZrNa8ukRLlc.jpg","height":789,"iso_639_1":"es","vote_average":"5.17113095238095","vote_count":1,"width":533},{"aspect_ratio":0.69,"file_path":"/ioEOm3dvcA0xK4DsJtyS7FM5OJl.jpg","height":2122,"iso_639_1":"bg","vote_average":"5.17113095238095","vote_count":1,"width":1471},{"aspect_ratio":0.65,"file_path":"/yU1qarHPNyA72l4Fy0XJFuVU0l9.jpg","height":2081,"iso_639_1":"pl","vote_average":"5.15750915750916","vote_count":2,"width":1356},{"aspect_ratio":0.67,"file_path":"/ezAkXkuTYiWPjYhy3y7DtBE0j5s.jpg","height":1500,"iso_639_1":"en","vote_average":"5.10622710622711","vote_count":2,"width":1000},{"aspect_ratio":0.67,"file_path":"/Vttr3YRuZ5Eu5TYdHp8ipf2dEl.jpg","height":1500,"iso_639_1":"en","vote_average":"5.07501630789302","vote_count":10,"width":1000},{"aspect_ratio":0.65,"file_path":"/tJRwUXWRGXxOuJ0ssdS8XfYmSJK.jpg","height":2000,"iso_639_1":"en","vote_average":"5.06302521008403","vote_count":5,"width":1297},{"aspect_ratio":0.7,"file_path":"/tla7PAr8HRciUtQ0zBggmOU52eK.jpg","height":2500,"iso_639_1":"en","vote_average":"5.06122448979592","vote_count":7,"width":1750},{"aspect_ratio":0.65,"file_path":"/aCyI7PiYufbMJn2KTOH7gWvtq2f.jpg","height":2081,"iso_639_1":"en","vote_average":"5.05050505050505","vote_count":3,"width":1356},{"aspect_ratio":0.68,"file_path":"/clVy7zGIAhrOqwojV6TYuwEzJvP.jpg","height":2216,"iso_639_1":"en","vote_average":"4.98223169864961","vote_count":4,"width":1500},{"aspect_ratio":0.68,"file_path":"/pk380DUzkYqe0eFonuCVmiMquhm.jpg","height":2211,"iso_639_1":"en","vote_average":"4.98223169864961","vote_count":4,"width":1500},{"aspect_ratio":0.68,"file_path":"/7bkIR16b6vtfF6gHwuIbizqURq6.jpg","height":2366,"iso_639_1":"en","vote_average":"4.98223169864961","vote_count":4,"width":1600},{"aspect_ratio":0.68,"file_path":"/sGYx7voBSzgo3Y3SbyrMvCFzdY7.jpg","height":2366,"iso_639_1":"en","vote_average":"4.98223169864961","vote_count":4,"width":1600},{"aspect_ratio":0.71,"file_path":"/mkZXfPRyCeb4cLsGtE3trR7i63b.jpg","height":566,"iso_639_1":"hu","vote_average":0.0,"vote_count":0,"width":400},{"aspect_ratio":0.65,"file_path":"/iyJwNjPgedU24t37xkKsNmfHgAu.jpg","height":1000,"iso_639_1":"he","vote_average":0.0,"vote_count":0,"width":652}]}}
\ No newline at end of file diff --git a/tests/tmdb/data/releases.txt b/tests/tmdb/data/releases.txt deleted file mode 100644 index a9f243e..0000000 --- a/tests/tmdb/data/releases.txt +++ /dev/null @@ -1 +0,0 @@ -{"id":10528,"countries":[{"iso_3166_1":"US","certification":"PG-13","release_date":"2009-12-25"},{"iso_3166_1":"DK","certification":"15","release_date":"2009-12-25"},{"iso_3166_1":"FR","certification":"","release_date":"2010-02-03"},{"iso_3166_1":"DE","certification":"12","release_date":"2010-01-28"},{"iso_3166_1":"HU","certification":"16","release_date":"2010-01-07"},{"iso_3166_1":"BG","certification":"C","release_date":"2010-01-01"},{"iso_3166_1":"NL","certification":"12","release_date":"2010-01-07"},{"iso_3166_1":"GB","certification":"12A","release_date":"2009-12-26"}]} diff --git a/tests/tmdb/data/sherlock.ini b/tests/tmdb/data/sherlock.ini index 37535f8..45a1803 100644 --- a/tests/tmdb/data/sherlock.ini +++ b/tests/tmdb/data/sherlock.ini @@ -7,38 +7,14 @@ data = configuration.txt [https://api.themoviedb.org/3/configuration?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] data = configuration.txt -[https://api.themoviedb.org/3/movie/10528/casts?api_key=TMDB_TEST_API_KEY] -data = casts.txt - -[https://api.themoviedb.org/3/movie/10528/casts?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] -data = casts.txt - -[https://api.themoviedb.org/3/movie/10528/images?api_key=TMDB_TEST_API_KEY] -data = images.txt - -[https://api.themoviedb.org/3/movie/10528/images?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] -data = images.txt - -[https://api.themoviedb.org/3/movie/10528/keywords?api_key=TMDB_TEST_API_KEY] -data = keywords.txt - -[https://api.themoviedb.org/3/movie/10528/keywords?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] -data = keywords.txt - -[https://api.themoviedb.org/3/movie/10528/releases?api_key=TMDB_TEST_API_KEY] -data = releases.txt - -[https://api.themoviedb.org/3/movie/10528/releases?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] -data = releases.txt - -[https://api.themoviedb.org/3/movie/10528?api_key=TMDB_TEST_API_KEY] -data = details.txt - -[https://api.themoviedb.org/3/movie/10528?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] -data = details.txt - [https://api.themoviedb.org/3/search/movie?query=Sherlock+Holmes&api_key=TMDB_TEST_API_KEY] data = search.txt [https://api.themoviedb.org/3/search/movie?query=Sherlock+Holmes&api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY] data = search.txt + +[https://api.themoviedb.org/3/movie/10528?api_key=TMDB_TEST_API_KEY&append_to_response=releases,casts,keywords,images] +data = multiple.txt + +[https://api.themoviedb.org/3/movie/10528?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY&append%5Fto%5Fresponse=releases,casts,keywords,images] +data = multiple.txt diff --git a/tests/tmdb/test_tmdb_full_resolution.c b/tests/tmdb/test_tmdb_full_resolution.c index d658f83..9421175 100644 --- a/tests/tmdb/test_tmdb_full_resolution.c +++ b/tests/tmdb/test_tmdb_full_resolution.c @@ -67,7 +67,7 @@ test_region_certificate (GrlMedia *media, const gchar *region, const gchar *expe } #define DESCRIPTION \ -"In a dynamic new portrayal of Arthur Conan Doyle’s most famous characters, “Sherlock Holmes” sends Holmes and his stalwart partner Watson on their latest challenge. Revealing fighting skills as lethal as his legendary intellect, Holmes will battle as never before to bring down a new nemesis and unravel a deadly plot that could destroy England." +"Eccentric consulting detective Sherlock Holmes and Doctor John Watson battle to bring down a new nemesis and unravel a deadly plot that could destroy England." static void test_full_resolution (void) @@ -118,19 +118,19 @@ test_full_resolution (void) /* And now the slow properties */ g_assert_cmpstr (grl_media_get_site (media), ==, "http://sherlock-holmes-movie.warnerbros.com/"); - g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_GENRE), ==, 6); + g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_GENRE), ==, 7); g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_STUDIO), ==, 3); g_assert_cmpstr (grl_media_get_description (media), ==, DESCRIPTION); g_assert_cmpstr (grl_data_get_string (GRL_DATA (media), imdb_id), ==, "tt0988045"); - g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_KEYWORD), ==, 15); + g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_KEYWORD), ==, 12); - g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_PERFORMER), ==, 10); + g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_PERFORMER), ==, 54); - g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_PRODUCER), ==, 9); + g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_PRODUCER), ==, 10); - g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_DIRECTOR), ==, 1); + g_assert_cmpint (grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_DIRECTOR), ==, 2); g_assert_cmpstr (grl_data_get_string (GRL_DATA (media), GRL_METADATA_KEY_DIRECTOR), ==, "Guy Ritchie"); guint count = grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_REGION); |