This is great, I appreciate your thoroughness. After a lot of tinkering this afternoon, I believe I've now resolved the inconsistency and am now seeing the same behavior that you are (i.e., expected behavior).
Earlier, you'll recall that I mentioned I was running the latest version of Kodi in Debian (v20.1), a fully-updated version of Debian 12, and a fully-updated version of the App (v1.15). I even took the time to update to the latest point release of MariaDB, which I'm using as my SQL Database. I turned on maximum verbosity debugging everywhere, poked and prodded the API, manually confirmed SQL entries... everything should have been working.
About the only link in this chain that I didn't have root access to/couldn't peak under the hood was the iPad. So just to ensure I was at least running in a known-good/consistent state (I bought this thing second hand), I wiped/factory reset the device, upgraded iOS to the latest release, upgraded all Apps, and then reinstalled the Kodi Remote App. Lo and behold, I can now see the trailers just as you expect.
(2024-08-13, 07:14)Buschel Wrote: In your example I would expect the movieid 2 and 4 ("") to not show any trailer windows, the movieid 1 and 3 to show the back preview with the play button, and movieid 5 to 7 to show the proper embedded preview. I again checked this by hardcoding.
After doing all of the above, I can confirm I'm now seeing the expected behavior you described in all cases: Screenshot for
movieid's 2 and 4, screenshot for
movieid's 1 and 3, screenshot for
movieid's 5 and 7.
On the off chance anyone else in the future stumbles across this thread while searching Google for the same issue, here's the JSON output @
Buschel requested. This is known-good/as-expected output.
JSON:
[root@basementhtpc ~]$ curl --data-binary '{"jsonrpc":"2.0","method":"VideoLibrary.GetMovieDetails","params":{"movieid":7,"properties":["trailer"]},"id":2}' -H 'content-type: application/json;' http://basementhtpc:8080/jsonrpc | python3 -m json.tool
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"moviedetails": {
"label": "Analyze This",
"movieid": 7,
"trailer": "https://www.youtube.com/watch?v=2ZrWHtvSog4"
}
}
}
JSON:
[root@basementhtpc ~]$ curl --data-binary '{"jsonrpc":"2.0","method":"VideoLibrary.GetMovieDetails","params":{"movieid":7,"properties":["year","playcount","rating","thumbnail","genre","runtime","studio","director","plot","mpaa","votes","cast","file","fanart","resume","trailer","dateadded","tagline","art"]},"id":2}' -H 'content-type: application/json;' http://basementhtpc:8080/jsonrpc | python3 -m json.tool
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"moviedetails": {
"art": {
"banner": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-banner.jpg/",
"clearlogo": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-clearlogo.png/",
"discart": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-discart.png/",
"fanart": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart.jpg/",
"fanart1": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart1.jpg/",
"fanart2": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart2.jpg/",
"fanart3": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart3.jpg/",
"fanart4": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart4.jpg/",
"fanart5": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart5.jpg/",
"icon": "image://DefaultVideo.png/",
"landscape": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-landscape.jpg/",
"poster": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-poster.jpg/"
},
"cast": [
{
"name": "Robert De Niro",
"order": 0,
"role": "Paul Vitti",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fTEST_MOVIE_NO_TRAILER_(2007)_(BLURAY)%2f.actors%2fRobert_De_Niro.jpg/"
},
{
"name": "Billy Crystal",
"order": 1,
"role": "Dr. Ben Sobel",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fBilly_Crystal.jpg/"
},
{
"name": "Lisa Kudrow",
"order": 2,
"role": "Laura MacNamara Sobel",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fLisa_Kudrow.jpg/"
},
{
"name": "Chazz Palminteri",
"order": 3,
"role": "Primo Sidone",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fChazz_Palminteri.jpg/"
},
{
"name": "Joe Viterelli",
"order": 4,
"role": "Jelly",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fJoe_Viterelli.jpg/"
},
{
"name": "Molly Shannon",
"order": 5,
"role": "Caroline",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fMolly_Shannon.jpg/"
},
{
"name": "Kresh Novakovic",
"order": 6,
"role": "'50s Gangster",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fKresh_Novakovic.jpg/"
},
{
"name": "Bart Tangredi",
"order": 7,
"role": "Young Vitti Sr.",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fBart_Tangredi.jpg/"
},
{
"name": "Michael Straka",
"order": 8,
"role": "Young Dominic Manetta",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fMichael_Straka.jpg/"
},
{
"name": "Kyle Sabihy",
"order": 9,
"role": "Michael Sobel",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THAT_(2002)_(DVD)%2f.actors%2fKyle_Sabihy.jpg/"
},
{
"name": "Frank Pietrangolare",
"order": 10,
"role": "Tuna",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fFrank_Pietrangolare.jpg/"
},
{
"name": "Ron Madoff",
"order": 11,
"role": "Extra Sea World Scene"
},
{
"name": "Leo Rossi",
"order": 12,
"role": "Carlo Mangano",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fLeo_Rossi.jpg/"
},
{
"name": "Donna Marie Recco",
"order": 13,
"role": "Sheila",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fDonna_Marie_Recco.jpg/"
},
{
"name": "Joseph Rigano",
"order": 14,
"role": "Dominic Manetta"
},
{
"name": "Max Casella",
"order": 15,
"role": "Nicky Shivers",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fMax_Casella.jpg/"
},
{
"name": "Bill Macy",
"order": 16,
"role": "Dr. Isaac Sobel",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fBill_Macy.jpg/"
},
{
"name": "Jimmie Ray Weeks",
"order": 17,
"role": "FBI Agent Steadman"
},
{
"name": "Tony Darrow",
"order": 18,
"role": "Moony",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fTony_Darrow.jpg/"
},
{
"name": "Gene Ruffini",
"order": 19,
"role": "Frankie Zello"
},
{
"name": "Richard C. Castellano",
"order": 20,
"role": "Jimmy Boots"
},
{
"name": "Frank Aquilino",
"order": 21,
"role": "Eddie 'Cokes'",
"thumbnail": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2f.actors%2fFrank_Aquilino.jpg/"
}
],
"dateadded": "2006-12-19 10:37:45",
"director": [
"Harold Ramis"
],
"fanart": "image://%2fmnt%2fvideo%2fmovies_test%2fANALYZE_THIS_(1999)_(DVD)%2fANALYZE_THIS-fanart.jpg/",
"file": "/mnt/video/movies_test/ANALYZE_THIS_(1999)_(DVD)/ANALYZE_THIS.iso",
"genre": [
"Comedy",
"Crime"
],
"label": "Analyze This",
"movieid": 7,
"mpaa": "R",
"playcount": 0,
"plot": "Countless wiseguy films are spoofed in this film that centers on the neuroses and angst of a powerful Mafia racketeer who suffers from panic attacks. When Paul Vitti needs help dealing with his role in the \"family,\" unlucky shrink Dr. Ben Sobel is given just days to resolve Vitti's emotional crisis and turn him into a happy, well-adjusted gangster.",
"rating": 6.482999801635742,
"resume": {
"position": 0.0,
"total": 0.0
},
"runtime": 6180,
"studio": [
"Spring Creek Productions",
"Tribeca Productions",
"Baltimore Pictures",
"Warner Bros. Pictures"
],
"tagline": "New York's most powerful gangster is about to get in touch with his feelings. YOU try telling him his 50 minutes are up.",
"thumbnail": "",
"trailer": "https://www.youtube.com/watch?v=2ZrWHtvSog4",
"votes": "1804",
"year": 1999
}
}
}