Kodi Community Forum
Revised: parse selected result in $$2? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: Revised: parse selected result in $$2? (/showthread.php?tid=252630)



Revised: parse selected result in $$2? - mrjwm2 - 2015-12-19

My last question was worded very badly. Let me try this.

Upon entering GetDetails I want to parse the selected <entity>(url) chosen from the list returned by GetSearchResults. Using ScraperEdit I see the selected <entity>(url) is in $$2.

Using ScraperEdit all works well. $$2 is the input, run the regex on it, and it moves what I need to the buffer I designated.

Using Kodi not so well. $$2 as the input, use (.+) as regex, returns the full list of all <entity> found in GetSearchResults function. I used (.+) as a test so I could see what was actually being input/parsed from $$2 in the Kodi debug log.

It does not appear that Kodi puts the selected <entity> in $$2.

Is there a way to get the selected <entity> and parse it?

I have tried many things and can't get it to work. I test with only one regex in GetDetails that would attempt to make this parse.

The reason I need this is so GetDetails runs it function based on the selected <entity>. The url in the selected <entity> contains the ID I need to parse/use in following CustomFunctions.

I've read thru the forum and can't find what I am asking.

Thanks!


Revised: parse selected result in $$2? - mrjwm2 - 2015-12-20

Got it sorted out. The selected <entity> is available in $$3. All good now.

Just one more thing to consider if using ScraperEdit.