I was trying to fix YT plugin for the issue with iPeng (and I think other controllers like Orange squeeze) where, once you've done a search if you press a track, it brings a context menu but quite often it plays something random. You have to long-press the item to get the same context menu and then play the right track. I've added 2 logs that basically show the same item being pressed and long-pressed.
The long story short seems to be that, when long-pressed, the context menu I receive has, assuming that the 1 level menu was a search for "toto" and we selected item 36 from the result.
"item_id:2_toto.36",
This is fine as then LMS will redo a search with parameter "toto" and ask for item 36
But when short-pressed, all I got is
"item_id:2.36",
The query parameter is gone and of course, when I do a YT API call, that cannot return the correct result
I understand that the difference between short press and long press is related to playlist play and destructive mode, but I don't understand why the parameter of the query is lost (and it does not seem to be an iPeng problem, I've seen others having the same issue with Orange squeeze.
As far as I understand, LMS gets context menu by storing Level, Search and Index using that "." and "_" syntax, but I don't know much more
The long story short seems to be that, when long-pressed, the context menu I receive has, assuming that the 1 level menu was a search for "toto" and we selected item 36 from the result.
"item_id:2_toto.36",
This is fine as then LMS will redo a search with parameter "toto" and ask for item 36
But when short-pressed, all I got is
"item_id:2.36",
The query parameter is gone and of course, when I do a YT API call, that cannot return the correct result
I understand that the difference between short press and long press is related to playlist play and destructive mode, but I don't understand why the parameter of the query is lost (and it does not seem to be an iPeng problem, I've seen others having the same issue with Orange squeeze.
As far as I understand, LMS gets context menu by storing Level, Search and Index using that "." and "_" syntax, but I don't know much more