2014-10-20, 15:51
The most up to date version of the script doesn't work with the MQ5 skin, or rather the skin hasn't been updated to support it. Ask your question on the skins forum thread instead.
<content>plugin://script.extendedinfo?info=getlocationevents&&tag=$INFO[Skin.String(selectedgenre)]&&lat=34.028158&&lon=-118.255463</content>
<content>plugin://script.extendedinfo?info=nearevents&&tag=$INFO[Skin.String(selectedgenre)]</content>
<content>plugin://script.extendedinfo?info=getlocationevents&&tag=$INFO[Skin.String(selectedgenre)]&&location=$INFO[Skin.String(selectedlocation)]</content>
<content>plugin://script.extendedinfo?info=getlocationevents&&tag=$INFO[Skin.String(selectedgenre)]&&location=$INFO[Skin.String(selectedlocation)]</content>
<content>plugin://script.extendedinfo?info=nearevents&&tag=$INFO[Skin.String(selectedgenre)]&&location=$INFO[Skin.String(selectedlocation)]</content>
(2014-10-24, 21:05)phil65 Wrote: Done. (untested though)
https://github.com/phil65/script.extende...f44ea29957
I merged getlocationevents into getnearevents so you can now use info=nearevents with either lat= and lon= or with location=.
Also added distance parameter.
(2014-10-24, 21:05)phil65 Wrote: Done. (untested though)I tried using...
https://github.com/phil65/script.extende...f44ea29957
I merged getlocationevents into getnearevents so you can now use info=nearevents with either lat= and lon= or with location=.
Also added distance parameter.
<content>plugin://script.extendedinfo?info=nearevents&&tag=$INFO[Skin.String(selectedgenre)]&&location=$INFO[Skin.String(selectedlocation)]</content>
<content>plugin://script.extendedinfo?info=nearevents&&tag=$INFO[Skin.String(selectedgenre)]&&location=Los Angeles</content>
<content>plugin://script.extendedinfo?info=nearevents&&location=Los Angeles</content>
(2014-10-24, 22:15)phil65 Wrote: not sure if I can fix that, probably xbmc core stuff. you could try to use a "+" instead of space.
def GetNearEvents(tag=False, festivalsonly=False, lat="", lon="", location="", distance=""):
if festivalsonly:
festivalsonly = "1"
else:
festivalsonly = "0"
url = 'method=geo.getevents&festivalsonly=%s&limit=40' % (festivalsonly)
if tag:
url = url + '&tag=%s' % (urllib.quote_plus(tag))
if lat:
url = url + '&lat=%s&long=%s' % (str(lat), str(lon)) # &distance=60
if location:
url = url + '&location=%s' % (location).replace(" ","+")
if distance:
url = url + '&distance=%s' % (distance)
results = Get_JSON_response(base_url, url, 0.5)
return HandleLastFMEventResult(results)
(2014-10-24, 22:39)woodside Wrote:(2014-10-24, 22:34)phil65 Wrote: what are you using to let the user input text? Skin.SetString(stringname)?Yes. Skin.SetString(stringname)... also If I use .replace in lastfm.py as shown in above post it seems to work