Jump to content

Movie matching accuracy


MBSki

Recommended Posts

MBSki

Something seems to be off with movie matching. Why would the first match for Life (1999) be A Bug's Life (1998). A Bug's Life is clearly not the best match.

image.png.b2af13343fbb6bb881cbfd72ebfac592.png 

image.png.c4fbe91a932420fce2f3af9664d1e191.png

Link to comment
Share on other sites

Happy2Play

But primary issue is TMDB api returns the query that way not Emby.

query=Life&language=en&year=1999

{
"page": 1,
"results": [
{
"adult": false,
"backdrop_path": "/u2HrA8BMvvHURz5mVOIe9EM1zGx.jpg",
"genre_ids": [
12,
16,
35,
10751
],
"id": 9487,
"original_language": "en",
"original_title": "A Bug's Life",
"overview": "On behalf of \"oppressed bugs everywhere,\" an inventive ant named Flik hires a troupe of warrior bugs to defend his bustling colony from a horde of freeloading grasshoppers led by the evil-minded Hopper.",
"popularity": 92.27,
"poster_path": "/hFamOus53922agTlKxhcL7ngJ9h.jpg",
"release_date": "1998-11-25",
"title": "A Bug's Life",
"video": false,
"vote_average": 7,
"vote_count": 7793
},
{
"adult": false,
"backdrop_path": "/GjoNCBnOdmKz7ZVG0IICfg1GKa.jpg",
"genre_ids": [
35,
80
],
"id": 6522,
"original_language": "en",
"original_title": "Life",
"overview": "Two men in 1930s Mississippi become friends after being sentenced to life in prison together for a crime they did not commit.",
"popularity": 15.864,
"poster_path": "/mMTrgEhGrHzin07P5G6BPVw9XuW.jpg",
"release_date": "1999-04-16",
"title": "Life",
"video": false,
"vote_average": 6.7,
"vote_count": 614
}

 

  • Agree 1
Link to comment
Share on other sites

chef
19 minutes ago, mbarylski said:

Something seems to be off with movie matching. Why would the first match for Life (1999) be A Bug's Life (1998). A Bug's Life is clearly not the best match.

image.png.b2af13343fbb6bb881cbfd72ebfac592.png 

image.png.c4fbe91a932420fce2f3af9664d1e191.png

Looks like the results are being sorted by production year.

When you fill out the identify fourm, if you add the production year, I believe that only one result will show.

Edited by chef
Link to comment
Share on other sites

chef
2 minutes ago, Happy2Play said:

But primary issue is TMDB api returns the query that way not Emby.

query=Life&language=en&year=1999

{
"page": 1,
"results": [
{
"adult": false,
"backdrop_path": "/u2HrA8BMvvHURz5mVOIe9EM1zGx.jpg",
"genre_ids": [
12,
16,
35,
10751
],
"id": 9487,
"original_language": "en",
"original_title": "A Bug's Life",
"overview": "On behalf of \"oppressed bugs everywhere,\" an inventive ant named Flik hires a troupe of warrior bugs to defend his bustling colony from a horde of freeloading grasshoppers led by the evil-minded Hopper.",
"popularity": 92.27,
"poster_path": "/hFamOus53922agTlKxhcL7ngJ9h.jpg",
"release_date": "1998-11-25",
"title": "A Bug's Life",
"video": false,
"vote_average": 7,
"vote_count": 7793
},
{
"adult": false,
"backdrop_path": "/GjoNCBnOdmKz7ZVG0IICfg1GKa.jpg",
"genre_ids": [
35,
80
],
"id": 6522,
"original_language": "en",
"original_title": "Life",
"overview": "Two men in 1930s Mississippi become friends after being sentenced to life in prison together for a crime they did not commit.",
"popularity": 15.864,
"poster_path": "/mMTrgEhGrHzin07P5G6BPVw9XuW.jpg",
"release_date": "1999-04-16",
"title": "Life",
"video": false,
"vote_average": 6.7,
"vote_count": 614
}

 

That is interesting, you have added the year to the request url, and yet the results have 1998.

That is very strange. 

  • Agree 1
Link to comment
Share on other sites

chef

What is also interesting is that emby seems to be choosing 'firstOrDefault' in the return JSON, even though the production year is available to help identify the proper one.

 

 

Link to comment
Share on other sites

Happy2Play
4 minutes ago, chef said:

That is interesting, you have added the year to the request url, and yet the results have 1998.

That is very strange. 

Yes as other country release dates or release type skew the actual query.  So you end up with that year tolerance.

image.png.17be0628b73bb09df126d8c2ce6823ca.png

 

Edited by Happy2Play
  • Like 1
Link to comment
Share on other sites

Happy2Play

So in this case TMDB will give correct result first if Life (2000) is used.  This is why we have so many mismatches with TMDB.

query=Life&language=en&year=2000

"page": 1,
"results": [
{
"adult": false,
"backdrop_path": "/GjoNCBnOdmKz7ZVG0IICfg1GKa.jpg",
"genre_ids": [
35,
80
],
"id": 6522,
"original_language": "en",
"original_title": "Life",
"overview": "Two men in 1930s Mississippi become friends after being sentenced to life in prison together for a crime they did not commit.",
"popularity": 15.864,
"poster_path": "/mMTrgEhGrHzin07P5G6BPVw9XuW.jpg",
"release_date": "1999-04-16",
"title": "Life",
"video": false,
"vote_average": 6.7,
"vote_count": 614
}
.
.
.
.
.
.

But Emby should do a little more magic behind the scenes matching Title though as Life and A Bug's Life should be distiquishable.

Edited by Happy2Play
  • Agree 2
Link to comment
Share on other sites

MBSki
48 minutes ago, Happy2Play said:

But Emby should do a little more magic behind the scenes matching Title though as Life and A Bug's Life should be distiquishable.

Yes, exactly! 

Link to comment
Share on other sites

  • 5 months later...
MBSki

So, how exactly does this happen? 

Movie Filename: O (2001)

Selected Movie:

image.png.17513bfd0405009032d4e744e519ce20.png

First movie using Identify function:

image.png.9fd5ad34eb206b26b7c7ad5d6af462a9.png

 

@Luke Can you tweak the algorithm for movie matching? It returns some strange results.

Link to comment
Share on other sites

4 minutes ago, MBSki said:

Can you tweak the algorithm for movie matching?

We use the metadata provider search engines.  What is  your first metadata provider for that library?

If I search for "O" on tmdb, the first result is actually Avatar.

Link to comment
Share on other sites

MBSki
4 minutes ago, ebr said:

We use the metadata provider search engines.  What is  your first metadata provider for that library?

If I search for "O" on tmdb, the first result is actually Avatar.

TheMovieDb is my metadata provider. But what does Identify use?

Link to comment
Share on other sites

GrimReaper
9 minutes ago, ebr said:

If I search for "O" on tmdb, the first result is actually Avatar.

In webpage search - yes. But api call returns differently:

Quote
{"page":1,"results":[{"adult":false,"backdrop_path":"/fc2mifxyCXyr66FMSmsfUXVREEg.jpg","genre_ids":[18,10749,53],"id":11065,"original_language":"en","original_title":"O","overview":"Even though he's the only black student at the elite Palmetto Grove Academy, star basketball player and future NBA hopeful Odin James has the adoration of all, including the team's coach and the Dean's beautiful daughter Desi. Odin's troubled friend Hugo, the coach's son, is deeply resentful of his father's preference of Odin on and off the court. When Hugo plots a diabolical scheme to sow the seed of mistrust between O and Desi, it sets in motion a disturbing chain of events which erupts into a firestorm of breathtaking intensity.","popularity":11.576,"poster_path":"/bz4IiGxJwcbN4kTLdUuXlcGSMaH.jpg","release_date":"2001-08-31","title":"O","video":false,"vote_average":6,"vote_count":205},{"adult":false,"backdrop_path":"/agwkvkJTJrpRlheTn1Qe1qEgJh4.jpg","genre_ids":[18,10752,27],"id":5336,"original_language":"it","original_title":"Salò o le 120 giornate di Sodoma","overview":"Four corrupted fascist libertines round up 9 teenage boys and girls and subject them to 120 days of sadistic physical, mental and sexual torture.","popularity":76.822,"poster_path":"/xnaDdiRfZlJaTf6JRc4in40eaeI.jpg","release_date":"1976-01-10","title":"Salò, or the 120 Days of Sodom","video":false,"vote_average":6.5,"vote_count":1613},{"adult":false,"backdrop_path":"/3U98a4AWjRRptUSbNdxtM9cp3dd.jpg","genre_ids":[12,35,80],"id":134,"original_language":"en","original_title":"O Brother, Where Art Thou?","overview":"In the deep south during the 1930s, three escaped convicts search for hidden treasure while a relentless lawman pursues them. On their journey they come across many comical characters and incredible situations. Based upon Homer's 'Odyssey'.","popularity":27.041,"poster_path":"/s9foMAcLg8GEzzQzer04qOGdD1k.jpg","release_date":"2000-08-30","title":"O Brother, Where Art Thou?","video":false,"vote_average":7.3,"vote_count":3529},{"adult":false,"backdrop_path":"/hAvu0oWrEbbPN71QC8w1NIoUYQT.jpg","genre_ids":[16],"id":49612,"original_language":"gl","original_title":"O Bosque Animado","overview":"Each day when the humans leave Cecebre Forest, its transforms into a magical place where plants and creatures come alive in wonderful ways. Trouble strikes on the day that men in hard hats plant a long, hard, cold telephone pole in the middle of the forest. The forest is in disarray and Furi, a friendly mole, finds that his friend Linda is missing along with an entire mole colony! The forest creatures join Furi on his quest to find the moles, proving that friendship can overcome any obstacle.","popularity":5.53,"poster_path":"/duQj5N1UpUd0cGDpFBd1kP7MQdZ.jpg","release_date":"2001-01-01","title":"The Living Forest","video":false,"vote_average":5.4,"vote_count":21},{"adult":false,"backdrop_path":"/6aANP3hW1PO7nJLMWKRt45sPs6W.jpg","genre_ids":[18,53,80],"id":53960,"original_language":"pt","original_title":"O Invasor","overview":"Two businessmen hire a hitman to kill their third partner and are then blackmailed by the hitman as he takes over their company.","popularity":2.566,"poster_path":"/uZV2R1L1dO5wrsPRkixItcTr2Ah.jpg","release_date":"2001-11-24","title":"The Trespasser","video":false,"vote_average":6.7,"vote_count":42},{"adult":false,"backdrop_path":"/wDxM8yfKZnSNppPxTeSr3c6my2H.jpg","genre_ids":[35,80],"id":63712,"original_language":"pt","original_title":"O Xangô de Baker Street","overview":"Rio de Janeiro, 1886. A precious Stradivarius violin presented to Emperor Dom Pedro II is stolen. Sherlock Holmes and Dr. Watson are called to solve the case.","popularity":2.776,"poster_path":"/t6lA48IIzY0xNdPOiK85A4e4DsA.jpg","release_date":"2001-09-27","title":"The Xango from Baker Street","video":false,"vote_average":6.7,"vote_count":31},{"adult":false,"backdrop_path":"/n4Ec7koHqqFKz0fC7vIitNxxqwi.jpg","genre_ids":[37],"id":22201,"original_language":"en","original_title":"Gunfight at the O.K. Corral","overview":"Lawman Wyatt Earp and outlaw Doc Holliday form an unlikely alliance which culminates in their participation in the legendary Gunfight at the O.K. Corral.","popularity":18.684,"poster_path":"/71AQUFbw49ALCNtKZ69flFmbRhF.jpg","release_date":"1957-05-30","title":"Gunfight at the O.K. Corral","video":false,"vote_average":7,"vote_count":266},{"adult":false,"backdrop_path":"/eB7NQzmfMLNMcjmQsLeoZ3rTjiz.jpg","genre_ids":[28,16,10751,14,10402],"id":182496,"original_language":"pt","original_title":"O Grilo Feliz","overview":"Happy Cricket and his cute, adorable friends will have to defeat the evil Wartlord and rescue Linda, the Night Star. This film celebrates the values of friendship, freedom and the defense of nature.","popularity":1.029,"poster_path":"/lRzwv6korHq3tNVpi7249kWZqxU.jpg","release_date":"2006-10-23","title":"The Happy Cricket","video":false,"vote_average":4.5,"vote_count":10},{"adult":false,"backdrop_path":"/paKPZMBQbmJiDmVtGqmtNv6Sebj.jpg","genre_ids":[18,10749],"id":382594,"original_language":"pt","original_title":"Frágil como o Mundo","overview":"An impossible love. Two young people who love each other. Vera and João can’t find in this life the space, time, or identity to resolve their love story.","popularity":1.4,"poster_path":"/i1sVi36JkITsLiXh9itwZqEOi9N.jpg","release_date":"2001-07-20","title":"Fragile as the World","video":false,"vote_average":7.8,"vote_count":9},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":772371,"original_language":"en","original_title":"O Bloqueio","overview":"","popularity":0.6,"poster_path":null,"release_date":"2001-03-01","title":"O Bloqueio","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":null,"genre_ids":[28,35],"id":36326,"original_language":"pt","original_title":"O Ninja das Caldas","overview":"He just wanted to be happy but they don't let him go in peace...","popularity":1.015,"poster_path":"/hPcUCIjP21Yg514PdZCyABqDrVl.jpg","release_date":"2001-06-21","title":"O Ninja das Caldas","video":false,"vote_average":5.6,"vote_count":5},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":961202,"original_language":"sm","original_title":"O motu na latou faaigoaina o Samoa","overview":"Samoana recounts events and personages of Samoa's history in its 3000 years of settlement. Having left southeast Asia several centuries before, these seafaring people and exponents of the lapita culture made the Samoa island group their home. They developed a culture which retained elements of their original, and embraced new aspects as they adapted to a different environment.","popularity":0.6,"poster_path":"/2VrW7pzQwLri5V590AHdVBkgRk5.jpg","release_date":"2001-01-01","title":"Samoana: The Islands They Named Samoa","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":"/p6elBCmiCVBDFmsmEWodfKACdRK.jpg","genre_ids":[18],"id":640403,"original_language":"pt","original_title":"Presença de Anita: O Filme","overview":"Adapted from the series aired in 2001. Looking for inspiration during the holidays, Nando sees Anita as the ideal character for his novel. She lives in a townhouse where a passionate crime happened in the past. Intense, Anita seduces Nando and awakens to","popularity":0.938,"poster_path":"/nmDG1MtMe9w8nrfYy8FtZaqWuFR.jpg","release_date":"2001-08-07","title":"The Presence of Anita","video":false,"vote_average":5.3,"vote_count":4},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":876143,"original_language":"gl","original_title":"O tempo perdido","overview":"People associated with the art world give their personal interpretation of verses taken out of context of the respective poem. We see images, hear sounds, they interpret… What is ‘the city and the world’? What is ‘the room’? What does ‘the jails of time contract’ mean? This piece reveals the feelings prompted by reflection on the simple wording of a poem, which is ultimately reconstructed to propose a discussion around time and where we wasted it.","popularity":0.6,"poster_path":"/zbeGKN9vxwYhdLLYFnJ23M0FICW.jpg","release_date":"2001-01-01","title":"O tempo perdido","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":"/t3kg5KKT5SHTVO4TjLGFZ7CmQXw.jpg","genre_ids":[18],"id":904747,"original_language":"tr","original_title":"O da Beni Seviyor","overview":"Summer Love is a 2001 Turkish drama film directed and written by Barış Pirhasan with Gül Dirican.","popularity":0.841,"poster_path":"/xvxR74dWDWUmEiBVjrEvHacq02A.jpg","release_date":"2001-10-12","title":"O da Beni Seviyor","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":null,"genre_ids":[10749,35],"id":286231,"original_language":"pt","original_title":"O Casamento de Louise","overview":"Two women, from opposite worlds, Louise and her maid Luzia, both share a passion for music and finding the perfect man. What can happen during a luncheon where the tastes of both women coincide and clash, while in the presence of two desirable men?","popularity":0.84,"poster_path":"/1anLEEdkjJ8GzeTVJVxCvt8YadA.jpg","release_date":"2001-06-08","title":"Louise's Wedding","video":false,"vote_average":8,"vote_count":1},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":829801,"original_language":"pt","original_title":"Resgate Cultural, o filme","overview":"The writer Ariano Suassuna is kidnapped by rebel forces that request a cultural rescue to free him.","popularity":0.6,"poster_path":null,"release_date":"2001-01-01","title":"Resgate Cultural, o filme","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":274440,"original_language":"pt","original_title":"O Chamado de Deus","overview":"","popularity":0.6,"poster_path":"/hJlfnOe2p9X2vHHIoEdKjH3fgga.jpg","release_date":"2001-04-12","title":"O Chamado de Deus","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":433452,"original_language":"es","original_title":"V.o.","overview":"","popularity":0.6,"poster_path":null,"release_date":"2001-01-05","title":"V.o.","video":false,"vote_average":7,"vote_count":1},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":993181,"original_language":"cs","original_title":"Zpráva o Králi Šumavy","overview":"","popularity":0.6,"poster_path":null,"release_date":"2001-05-14","title":"Zpráva o Králi Šumavy","video":false,"vote_average":0,"vote_count":0}],"total_pages":24,"total_results":462}

 

Link to comment
Share on other sites

MBSki
6 minutes ago, GrimReaper said:

In webpage search - yes. But api call returns differently:

That seems to be 1 problem. Shouldn't they both be using the same method for matching? 

And, there are times when both api and webpage search are the wrong match so it seems like the logic needs some improvement.

Link to comment
Share on other sites

10 minutes ago, MBSki said:

That seems to be 1 problem. Shouldn't they both be using the same method for matching? 

And, there are times when both api and webpage search are the wrong match so it seems like the logic needs some improvement.

Again, that is at the provider but the API and web page do usually pull from different data sets.  Its just the way they are setup.

Link to comment
Share on other sites

MBSki
2 minutes ago, ebr said:

Again, that is at the provider but the API and web page do usually pull from different data sets.  Its just the way they are setup.

And isn't that a flaw in the design? Why would we want the api and user interface to match differently?

Link to comment
Share on other sites

29 minutes ago, MBSki said:

That seems to be 1 problem. Shouldn't they both be using the same method for matching? 

And, there are times when both api and webpage search are the wrong match so it seems like the logic needs some improvement.

You're why does the movie db search page and API show different results. I think they will need to chime in on that.

Link to comment
Share on other sites

MBSki
5 minutes ago, Luke said:

You're why does the movie db search page and API show different results. I think they will need to chime in on that.

@Luke Did auto correct change the first part of your message? Looks like you're asking someone specific, but there's no one mentioned.

Link to comment
Share on other sites

GrimReaper

I have a feeling we're missing a point here, for current issue search page is largely irrelevant, issue was:

1 hour ago, MBSki said:

Movie Filename: O (2001)

Selected Movie:

image.png.17513bfd0405009032d4e744e519ce20.png

How was Ali (2001) matched when it's not even listed in api call, let alone usual first result in json?

{
"page":1,
"results":[
{
"adult":false,
"backdrop_path":"/fc2mifxyCXyr66FMSmsfUXVREEg.jpg",
"genre_ids":[
18,
10749,
53
],
"id":11065,
"original_language":"en",
"original_title":"O",
"overview":"Even though he's the only black student at the elite Palmetto Grove Academy, star basketball player and future NBA hopeful Odin James has the adoration of all, including the team's coach and the Dean's beautiful daughter Desi. Odin's troubled friend Hugo, the coach's son, is deeply resentful of his father's preference of Odin on and off the court. When Hugo plots a diabolical scheme to sow the seed of mistrust between O and Desi, it sets in motion a disturbing chain of events which erupts into a firestorm of breathtaking intensity.",
"popularity":11.576,
"poster_path":"/bz4IiGxJwcbN4kTLdUuXlcGSMaH.jpg",
"release_date":"2001-08-31",
"title":"O",
"video":false,
"vote_average":6,
"vote_count":205
},
{
"adult":false,
"backdrop_path":"/agwkvkJTJrpRlheTn1Qe1qEgJh4.jpg",
"genre_ids":[
18,
10752,
27
],
"id":5336,
"original_language":"it",
"original_title":"Salò o le 120 giornate di Sodoma",
"overview":"Four corrupted fascist libertines round up 9 teenage boys and girls and subject them to 120 days of sadistic physical, mental and sexual torture.",
"popularity":76.822,
"poster_path":"/xnaDdiRfZlJaTf6JRc4in40eaeI.jpg",
"release_date":"1976-01-10",
"title":"Salò, or the 120 Days of Sodom",
"video":false,
"vote_average":6.5,
"vote_count":1613
},
{
"adult":false,
"backdrop_path":"/3U98a4AWjRRptUSbNdxtM9cp3dd.jpg",
"genre_ids":[
12,
35,
80
],
"id":134,
"original_language":"en",
"original_title":"O Brother, Where Art Thou?",
"overview":"In the deep south during the 1930s, three escaped convicts search for hidden treasure while a relentless lawman pursues them. On their journey they come across many comical characters and incredible situations. Based upon Homer's 'Odyssey'.",
"popularity":27.041,
"poster_path":"/s9foMAcLg8GEzzQzer04qOGdD1k.jpg",
"release_date":"2000-08-30",
"title":"O Brother, Where Art Thou?",
"video":false,
"vote_average":7.3,
"vote_count":3529
},
{
"adult":false,
"backdrop_path":"/hAvu0oWrEbbPN71QC8w1NIoUYQT.jpg",
"genre_ids":[
16
],
"id":49612,
"original_language":"gl",
"original_title":"O Bosque Animado",
"overview":"Each day when the humans leave Cecebre Forest, its transforms into a magical place where plants and creatures come alive in wonderful ways. Trouble strikes on the day that men in hard hats plant a long, hard, cold telephone pole in the middle of the forest. The forest is in disarray and Furi, a friendly mole, finds that his friend Linda is missing along with an entire mole colony! The forest creatures join Furi on his quest to find the moles, proving that friendship can overcome any obstacle.",
"popularity":5.53,
"poster_path":"/duQj5N1UpUd0cGDpFBd1kP7MQdZ.jpg",
"release_date":"2001-01-01",
"title":"The Living Forest",
"video":false,
"vote_average":5.4,
"vote_count":21
},
{
"adult":false,
"backdrop_path":"/6aANP3hW1PO7nJLMWKRt45sPs6W.jpg",
"genre_ids":[
18,
53,
80
],
"id":53960,
"original_language":"pt",
"original_title":"O Invasor",
"overview":"Two businessmen hire a hitman to kill their third partner and are then blackmailed by the hitman as he takes over their company.",
"popularity":2.566,
"poster_path":"/uZV2R1L1dO5wrsPRkixItcTr2Ah.jpg",
"release_date":"2001-11-24",
"title":"The Trespasser",
"video":false,
"vote_average":6.7,
"vote_count":42
},
{
"adult":false,
"backdrop_path":"/wDxM8yfKZnSNppPxTeSr3c6my2H.jpg",
"genre_ids":[
35,
80
],
"id":63712,
"original_language":"pt",
"original_title":"O Xangô de Baker Street",
"overview":"Rio de Janeiro, 1886. A precious Stradivarius violin presented to Emperor Dom Pedro II is stolen. Sherlock Holmes and Dr. Watson are called to solve the case.",
"popularity":2.776,
"poster_path":"/t6lA48IIzY0xNdPOiK85A4e4DsA.jpg",
"release_date":"2001-09-27",
"title":"The Xango from Baker Street",
"video":false,
"vote_average":6.7,
"vote_count":31
},
{
"adult":false,
"backdrop_path":"/n4Ec7koHqqFKz0fC7vIitNxxqwi.jpg",
"genre_ids":[
37
],
"id":22201,
"original_language":"en",
"original_title":"Gunfight at the O.K. Corral",
"overview":"Lawman Wyatt Earp and outlaw Doc Holliday form an unlikely alliance which culminates in their participation in the legendary Gunfight at the O.K. Corral.",
"popularity":18.684,
"poster_path":"/71AQUFbw49ALCNtKZ69flFmbRhF.jpg",
"release_date":"1957-05-30",
"title":"Gunfight at the O.K. Corral",
"video":false,
"vote_average":7,
"vote_count":266
},
{
"adult":false,
"backdrop_path":"/eB7NQzmfMLNMcjmQsLeoZ3rTjiz.jpg",
"genre_ids":[
28,
16,
10751,
14,
10402
],
"id":182496,
"original_language":"pt",
"original_title":"O Grilo Feliz",
"overview":"Happy Cricket and his cute, adorable friends will have to defeat the evil Wartlord and rescue Linda, the Night Star. This film celebrates the values of friendship, freedom and the defense of nature.",
"popularity":1.029,
"poster_path":"/lRzwv6korHq3tNVpi7249kWZqxU.jpg",
"release_date":"2006-10-23",
"title":"The Happy Cricket",
"video":false,
"vote_average":4.5,
"vote_count":10
},
{
"adult":false,
"backdrop_path":"/paKPZMBQbmJiDmVtGqmtNv6Sebj.jpg",
"genre_ids":[
18,
10749
],
"id":382594,
"original_language":"pt",
"original_title":"Frágil como o Mundo",
"overview":"An impossible love. Two young people who love each other. Vera and João can’t find in this life the space, time, or identity to resolve their love story.",
"popularity":1.4,
"poster_path":"/i1sVi36JkITsLiXh9itwZqEOi9N.jpg",
"release_date":"2001-07-20",
"title":"Fragile as the World",
"video":false,
"vote_average":7.8,
"vote_count":9
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
],
"id":772371,
"original_language":"en",
"original_title":"O Bloqueio",
"overview":"",
"popularity":0.6,
"poster_path":null,
"release_date":"2001-03-01",
"title":"O Bloqueio",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
28,
35
],
"id":36326,
"original_language":"pt",
"original_title":"O Ninja das Caldas",
"overview":"He just wanted to be happy but they don't let him go in peace...",
"popularity":1.015,
"poster_path":"/hPcUCIjP21Yg514PdZCyABqDrVl.jpg",
"release_date":"2001-06-21",
"title":"O Ninja das Caldas",
"video":false,
"vote_average":5.6,
"vote_count":5
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
99
],
"id":961202,
"original_language":"sm",
"original_title":"O motu na latou faaigoaina o Samoa",
"overview":"Samoana recounts events and personages of Samoa's history in its 3000 years of settlement. Having left southeast Asia several centuries before, these seafaring people and exponents of the lapita culture made the Samoa island group their home. They developed a culture which retained elements of their original, and embraced new aspects as they adapted to a different environment.",
"popularity":0.6,
"poster_path":"/2VrW7pzQwLri5V590AHdVBkgRk5.jpg",
"release_date":"2001-01-01",
"title":"Samoana: The Islands They Named Samoa",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":"/p6elBCmiCVBDFmsmEWodfKACdRK.jpg",
"genre_ids":[
18
],
"id":640403,
"original_language":"pt",
"original_title":"Presença de Anita: O Filme",
"overview":"Adapted from the series aired in 2001. Looking for inspiration during the holidays, Nando sees Anita as the ideal character for his novel. She lives in a townhouse where a passionate crime happened in the past. Intense, Anita seduces Nando and awakens to",
"popularity":0.938,
"poster_path":"/nmDG1MtMe9w8nrfYy8FtZaqWuFR.jpg",
"release_date":"2001-08-07",
"title":"The Presence of Anita",
"video":false,
"vote_average":5.3,
"vote_count":4
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
],
"id":876143,
"original_language":"gl",
"original_title":"O tempo perdido",
"overview":"People associated with the art world give their personal interpretation of verses taken out of context of the respective poem. We see images, hear sounds, they interpret… What is ‘the city and the world’? What is ‘the room’? What does ‘the jails of time contract’ mean? This piece reveals the feelings prompted by reflection on the simple wording of a poem, which is ultimately reconstructed to propose a discussion around time and where we wasted it.",
"popularity":0.6,
"poster_path":"/zbeGKN9vxwYhdLLYFnJ23M0FICW.jpg",
"release_date":"2001-01-01",
"title":"O tempo perdido",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":"/t3kg5KKT5SHTVO4TjLGFZ7CmQXw.jpg",
"genre_ids":[
18
],
"id":904747,
"original_language":"tr",
"original_title":"O da Beni Seviyor",
"overview":"Summer Love is a 2001 Turkish drama film directed and written by Barış Pirhasan with Gül Dirican.",
"popularity":0.841,
"poster_path":"/xvxR74dWDWUmEiBVjrEvHacq02A.jpg",
"release_date":"2001-10-12",
"title":"O da Beni Seviyor",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
10749,
35
],
"id":286231,
"original_language":"pt",
"original_title":"O Casamento de Louise",
"overview":"Two women, from opposite worlds, Louise and her maid Luzia, both share a passion for music and finding the perfect man. What can happen during a luncheon where the tastes of both women coincide and clash, while in the presence of two desirable men?",
"popularity":0.84,
"poster_path":"/1anLEEdkjJ8GzeTVJVxCvt8YadA.jpg",
"release_date":"2001-06-08",
"title":"Louise's Wedding",
"video":false,
"vote_average":8,
"vote_count":1
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
],
"id":829801,
"original_language":"pt",
"original_title":"Resgate Cultural, o filme",
"overview":"The writer Ariano Suassuna is kidnapped by rebel forces that request a cultural rescue to free him.",
"popularity":0.6,
"poster_path":null,
"release_date":"2001-01-01",
"title":"Resgate Cultural, o filme",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
99
],
"id":274440,
"original_language":"pt",
"original_title":"O Chamado de Deus",
"overview":"",
"popularity":0.6,
"poster_path":"/hJlfnOe2p9X2vHHIoEdKjH3fgga.jpg",
"release_date":"2001-04-12",
"title":"O Chamado de Deus",
"video":false,
"vote_average":0,
"vote_count":0
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
],
"id":433452,
"original_language":"es",
"original_title":"V.o.",
"overview":"",
"popularity":0.6,
"poster_path":null,
"release_date":"2001-01-05",
"title":"V.o.",
"video":false,
"vote_average":7,
"vote_count":1
},
{
"adult":false,
"backdrop_path":null,
"genre_ids":[
99
],
"id":993181,
"original_language":"cs",
"original_title":"Zpráva o Králi Šumavy",
"overview":"",
"popularity":0.6,
"poster_path":null,
"release_date":"2001-05-14",
"title":"Zpráva o Králi Šumavy",
"video":false,
"vote_average":0,
"vote_count":0
}
],
"total_pages":24,
"total_results":462
}

 

Link to comment
Share on other sites

42 minutes ago, GrimReaper said:

How was Ali (2001) matched when it's not even listed in api call, let alone usual first result in json?

At the time it was searched, it must have been.  It could be different now.  One-character searches are just very ambiguous with their search engine, obviously.

44 minutes ago, MBSki said:

Did auto correct change the first part of your message? Looks like you're asking someone specific, but there's no one mentioned.

Yes looks like auto type or something mangled it but he is just saying the same thing I did - your questions should be directed at TMDb.

We could certainly try to apply some sort of additional logic once the results come back but that will have a potentially large impact on performance so we have to weigh the value of that against how often there actually are issues like this.

Link to comment
Share on other sites

GrimReaper

Looked into this further.

Got same result on 4.7.11.0 stable as query syntax is wrong.

2023-01-09 19:14:28.493 Info App: MovieDbProvider: Finding id for item: O (2001)
2023-01-09 19:14:28.493 Info HttpClient: GET https://api.themoviedb.org/3/search/movie?api_key=x_secret1_x&query=O (2001)&language=en
2023-01-09 19:14:28.799 Info HttpClient: GET https://api.themoviedb.org/3/movie/8489?api_key=x_secret1_x&append_to_response=alternative_titles,reviews,casts,releases,images,keywords,trailers&language=en&include_image_language=en,null
2023-01-09 19:14:29.117 Info HttpClient: GET https://api.themoviedb.org/3/movie/8489?api_key=x_secret1_x&append_to_response=alternative_titles,reviews,casts,releases,images,keywords,trailers
2023-01-09 19:14:29.161 Info HttpClient: GET https://image.tmdb.org/t/p/original/aBphVTRYpJS028Of2Ctho1mYgcF.jpg
2023-01-09 19:14:29.404 Info HttpClient: GET https://image.tmdb.org/t/p/original/gVtm7G5NtQxjFNA5ydqxslxjCuk.jpg

Query should be using "O" for title and not "O (2001)", appended by year or primary_release_year, 

https://api.themoviedb.org/3/search/movie?api_key=f6bd687ffa63cd282b6ff2c6877f2669&query=O&language=en&year=2001

image.thumb.png.6fbbc538fb9ae7281b97ed35848c14a4.png

Edited by GrimReaper
Screenshot
  • Thanks 1
Link to comment
Share on other sites

11 minutes ago, GrimReaper said:

Got same result on 4.7.11.0 stable as query syntax is wrong.

So that means the current beta has this corrected?

(nice catch)

  • Like 1
Link to comment
Share on other sites

GrimReaper
6 minutes ago, ebr said:

So that means the current beta has this corrected?

(nice catch)

Yup, beta got it on the first try.

2023-01-09 19:43:24.429 Info HttpClient: GET https://api.themoviedb.org/3/search/movie?api_key=x_secret1_x&query=O&language=en&year=2001

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

MBSki

This one still isn't fixed in beta though. Life (1999) is getting matched to A Bug's Life (1998). What's going on with this one?

image.png.dae4678d99d23d5731511f9ad2da2869.png

Link to comment
Share on other sites

GrimReaper

Same as in beginning of this thread:

On 8/4/2022 at 1:51 PM, Happy2Play said:

But primary issue is TMDB api returns the query that way not Emby.

query=Life&language=en&year=1999

{
"page": 1,
"results": [
{
"adult": false,
"backdrop_path": "/u2HrA8BMvvHURz5mVOIe9EM1zGx.jpg",
"genre_ids": [
12,
16,
35,
10751
],
"id": 9487,
"original_language": "en",
"original_title": "A Bug's Life",
"overview": "On behalf of \"oppressed bugs everywhere,\" an inventive ant named Flik hires a troupe of warrior bugs to defend his bustling colony from a horde of freeloading grasshoppers led by the evil-minded Hopper.",
"popularity": 92.27,
"poster_path": "/hFamOus53922agTlKxhcL7ngJ9h.jpg",
"release_date": "1998-11-25",
"title": "A Bug's Life",
"video": false,
"vote_average": 7,
"vote_count": 7793
},
{
"adult": false,
"backdrop_path": "/GjoNCBnOdmKz7ZVG0IICfg1GKa.jpg",
"genre_ids": [
35,
80
],
"id": 6522,
"original_language": "en",
"original_title": "Life",
"overview": "Two men in 1930s Mississippi become friends after being sentenced to life in prison together for a crime they did not commit.",
"popularity": 15.864,
"poster_path": "/mMTrgEhGrHzin07P5G6BPVw9XuW.jpg",
"release_date": "1999-04-16",
"title": "Life",
"video": false,
"vote_average": 6.7,
"vote_count": 614
}

 

 

On 8/4/2022 at 2:09 PM, Happy2Play said:

But Emby should do a little more magic behind the scenes matching Title though as Life and A Bug's Life should be distiquishable.

 

There is obviously no additional logic implemented from Emby's side yet to parse the json but instead take the topmost result.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...