• 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 151
Release script.extendedinfo
(2014-10-24, 22:42)phil65 Wrote:
(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

oh ok, my fault then. I thaught it was because a space was used in plugin:// path, seems as if i missed something Wink
fixed now.
https://github.com/phil65/script.extende...f0953597cb

BAMMM.... works great... thanks
Reply
Phil, I'm trying for a dynamic list of Venue Events. I looked up the venue id for Arrowhead Pond on last.fm and i'm using the content tag below just for testing purposes.
eventually I'l get the venue id from the artist events list but for testing I manually added the ID for Arrowhead Pond

PHP Code:
<content>plugin://script.extendedinfo?info=venueevents&amp;&amp;id=8803641</content> 

When I load my window with the list control using the content tag above, I can see that the json file from last.fm api downloaded into the user addon directory with events for Arrowhead Pond, so I know i'm on the right track and the file is downloading and all

Everything seem to be working as far as the content tag running the script and obtaining the file with events from Arrowhead Pond, but I'm getting the error below when I load the window and the list isn't filling. I looked into the json file itself and looked for "total" attribute and even did a search for the word "total" in the file, but it doesn't exist in the file. Is that the cause of the error maybe? In that it is looking for "total" attribute and is throwing the error because it's not there?.
Am I even on the right track here or is there something i'm not putting in the content tag that I should be?... thanks for any help.

PHP Code:
05:17:59 T:6632   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.KeyError'>
                                            
Error Contents: ('total',)
                                            
Traceback (most recent call last):
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 595in <module>
                                                
Main()
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 40in __init__
                                                self
._StartInfoActions()
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 298in _StartInfoActions
                                                passDataToSkin
('VenueEvents'GetVenueEvents(self.id), self.prop_prefixself.windowself.controlself.handle)
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\LastFM.py"line 222in GetVenueEvents
                                                
return HandleLastFMEventResult(results)
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\LastFM.py"line 19in HandleLastFMEventResult
                                                
if int(results["events"]["@attr"]["total"]) == 1:
                                            
KeyError: ('total',)
                                            -->
End of Python script error report<--
05:17:59 T:2648   ERRORXFILE::CDirectory::GetDirectory Error getting plugin://script.extendedinfo/?info=venueevents&&id=8803641 
Reply
please post the file with the JSON data.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2014-10-27, 16:47)phil65 Wrote: please post the file with the JSON data.
Here is the raw text contents I changed the venue to another venue from Arrowhead Pond to one that had less events so the file would be smaller.

PHP Code:
{"events": {"@attr": {"festivalsonly""0""venue""Pappy & Harriet's"}, "event": [{"website""http://www.ticketfly.com/purchase/event/623351""startDate""Sun, 26 Oct 2014 19:00:00""attendance""2""description""<div class=\"bbcode\">All Ages<br />$25</div>""title""Tycho""url""http://www.last.fm/event/3937040+Tycho+at+Pappy+-+Harriet%27s+on+26+October+2014""tickets""\n  ""image": [{"#text""http://userserve-ak.last.fm/serve/34/101184549.jpg""size""small"}, {"#text""http://userserve-ak.last.fm/serve/64/101184549.jpg""size""medium"}, {"#text""http://userserve-ak.last.fm/serve/126/101184549.jpg""size""large"}, {"#text""http://userserve-ak.last.fm/serve/252/101184549.jpg""size""extralarge"}], "tags": {"tag": ["idm""electronic""instrumental""chillwave""lo-fi""ambient""chillout""downtempo""synthpop"]}, "venue": {"website""http://www.pappyandharriets.com""name""Pappy & Harriet's""url""http://www.last.fm/venue/8893749+Pappy+%2526+Harriet%27s""image": [{"#text""""size""small"}, {"#text""""size""medium"}, {"#text""""size""large"}, {"#text""""size""extralarge"}, {"#text""""size""mega"}], "phonenumber""+1-(760)-365-5956""location": {"postalcode""92268""city""Pioneertown, CA""geo:point": {"geo:long""-116.488566""geo:lat""34.15469"}, "street""53688 Pioneertown Road""country""United States"}, "id""8893749"}, "reviews""0""tag""lastfm:event=3937040""artists": {"headliner""Tycho""artist": ["Tycho""Com Truise"]}, "cancelled""0""id""3937040"}, {"website""http://pappyandharriets.com/events/9th-annual-halloween-rarty-w-gram-rabbit-special-guest-odeath-2-nights""startDate""Fri, 31 Oct 2014 20:00:00""attendance""0""description""<div class=\"bbcode\">9th ANNUAL HALLOWEEN RARTY w/ GRAM RABBIT!</div>""title""O'Death""url""http://www.last.fm/event/3927396+O%27Death+at+Pappy+-+Harriet%27s+on+31+October+2014""tickets""\n  ""image": [{"#text""http://userserve-ak.last.fm/serve/34/3528132.jpg""size""small"}, {"#text""http://userserve-ak.last.fm/serve/64/3528132.jpg""size""medium"}, {"#text""http://userserve-ak.last.fm/serve/126/3528132.jpg""size""large"}, {"#text""http://userserve-ak.last.fm/serve/252/3528132.jpg""size""extralarge"}], "tags": {"tag": ["alt-country""indie""alternative""new weird america""folk""electronic""country""halloween"]}, "venue": {"website""http://www.pappyandharriets.com""name""Pappy & Harriet's""url""http://www.last.fm/venue/8893749+Pappy+%2526+Harriet%27s""image": [{"#text""""size""small"}, {"#text""""size""medium"}, {"#text""""size""large"}, {"#text""""size""extralarge"}, {"#text""""size""mega"}], "phonenumber""+1-(760)-365-5956""location": {"postalcode""92268""city""Pioneertown, CA""geo:point": {"geo:long""-116.488566""geo:lat""34.15469"}, "street""53688 Pioneertown Road""country""United States"}, "id""8893749"}, "reviews""0""tag""lastfm:event=3927396""artists": {"headliner""O'Death""artist": ["O'Death""Gram Rabbit"]}, "cancelled""0""id""3927396"}, {"website""http://pappyandharriets.com/events/dum-dum-girls-ex-cops-9pm-15""startDate""Sat, 15 Nov 2014 16:12:01""attendance""3""description""<div class=\"bbcode\">All ages<br />$15<br /><a href=\"http://www.ticketfly.com/purchase/event/642049\" rel=\"nofollow\">http://www.ticketfly.com/purchase/event/642049</a></div>""title""Dum Dum Girls""url""http://www.last.fm/event/3923042+Dum+Dum+Girls+at+Pappy+-+Harriet%27s+on+15+November+2014""tickets""\n  ""image": [{"#text""http://userserve-ak.last.fm/serve/34/46732717.jpg""size""small"}, {"#text""http://userserve-ak.last.fm/serve/64/46732717.jpg""size""medium"}, {"#text""http://userserve-ak.last.fm/serve/126/46732717.jpg""size""large"}, {"#text""http://userserve-ak.last.fm/serve/252/46732717.jpg""size""extralarge"}], "tags": {"tag": ["lo-fi""noise pop"]}, "venue": {"website""http://www.pappyandharriets.com""name""Pappy & Harriet's""url""http://www.last.fm/venue/8893749+Pappy+%2526+Harriet%27s""image": [{"#text""""size""small"}, {"#text""""size""medium"}, {"#text""""size""large"}, {"#text""""size""extralarge"}, {"#text""""size""mega"}], "phonenumber""+1-(760)-365-5956""location": {"postalcode""92268""city""Pioneertown, CA""geo:point": {"geo:long""-116.488566""geo:lat""34.15469"}, "street""53688 Pioneertown Road""country""United States"}, "id""8893749"}, "reviews""0""tag""lastfm:event=3923042""artists": {"headliner""Dum Dum Girls""artist": ["Dum Dum Girls""Ex Cops""ROSES"]}, "cancelled""0""id""3923042"}, {"website""""startDate""Tue, 18 Nov 2014 21:00:00""attendance""0""description""""title""Har Mar Superstar and The Pizza Underground""url""http://www.last.fm/event/3937055+Har+Mar+Superstar+and+The+Pizza+Underground""tickets""\n  ""image": [{"#text""http://userserve-ak.last.fm/serve/34/437583.jpg""size""small"}, {"#text""http://userserve-ak.last.fm/serve/64/437583.jpg""size""medium"}, {"#text""http://userserve-ak.last.fm/serve/126/437583.jpg""size""large"}, {"#text""http://userserve-ak.last.fm/serve/252/437583.jpg""size""extralarge"}], "venue": {"website""http://www.pappyandharriets.com""name""Pappy & Harriet's""url""http://www.last.fm/venue/8893749+Pappy+%2526+Harriet%27s""image": [{"#text""""size""small"}, {"#text""""size""medium"}, {"#text""""size""large"}, {"#text""""size""extralarge"}, {"#text""""size""mega"}], "phonenumber""+1-(760)-365-5956""location": {"postalcode""92268""city""Pioneertown, CA""geo:point": {"geo:long""-116.488566""geo:lat""34.15469"}, "street""53688 Pioneertown Road""country""United States"}, "id""8893749"}, "reviews""0""tag""lastfm:event=3937055""artists": {"headliner""Har Mar Superstar""artist": ["Har Mar Superstar""Lizzo""The Pizza Underground"]}, "cancelled""0""id""3937055"}]}} 
Reply
thx, pushed a fix.
(please use sites like pastebin / xbmclogs for longer snippets and just post the link here)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2014-10-27, 17:19)phil65 Wrote: thx, pushed a fix.
(please use sites like pastebin / xbmclogs for longer snippets and just post the link here)
will do. thanks
Reply
Is it possible to get a list of events from using Skin.SetString(stringname) and entering the name of a venue so a user could search for events by venue name?
Something like using Skin.SetString(venuesearch) to open up a keyboard dialog to enter the name of a venue?
like this...

PHP Code:
<content>plugin://script.extendedinfo?info=venueevents&amp;&amp;venuename=$INFO[Skin.String(venuesearch)]</content> 

or this?

PHP Code:
<onclick>RunScript(script.extendedinfo,info=venueevents,venuename=$INFO[Skin.SetString(venuesearch)])</onclick
Reply
https://github.com/phil65/script.extende...69adc35b71

use location= instead of id= as a parameter.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2014-10-27, 19:05)phil65 Wrote: https://github.com/phil65/script.extende...69adc35b71

use location= instead of id= as a parameter.

Damn bro! that was quick...Thanks!
Reply
I only had to c&p from my other script script.maps.browser. Wink
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2014-10-27, 19:12)phil65 Wrote: I only had to c&p from my other script script.maps.browser. Wink

Hope i'm not bugging you too much here... If I enter "The Forum" without quotes as a location I get a list of events from a venue in London with the name "The Forum". however, say we have an arena here in the U.S called "The Forum" aka "The Forum at Inglewood", if I try and use "The Forum at Inglewood" or "The Forum Los Angeles" as location I get an error, it did find a result for "The Forum Los Angeles" cause a json file is getting download with the contents...

{"results": {"opensearch:Query": {"startPage": "1", "#text": "", "role": "request", "searchTerms": "The Forum Los Angeles"}, "@attr": {"for": "The Forum Los Angeles"}, "opensearch:itemsPerPage": "50", "opensearch:totalResults": "1", "venuematches": {"venue": {"website": "http://www.thelaforum.com/", "name": "The Forum", "url": "http://www.last.fm/venue/9191189+The+Forum", "image": [{"#text": "", "size": "small"}, {"#text": "", "size": "medium"}, {"#text": "", "size": "large"}, {"#text": "", "size": "extralarge"}, {"#text": "", "size": "mega"}], "phonenumber": "(310) 330-7300", "location": {"postalcode": "90305", "city": "Inglewood", "geo:point": {"geo:long": "-118.341868", "geo:lat": "33.9583"}, "street": "3900 W Manchester Blvd", "country": "United States"}, "id": "9191189"}}, "opensearchConfusedtartIndex": "0"}}

But... I'm getting an extendedinfo error...

PHP Code:
11:05:24 T:4668   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.KeyError'>
                                            
Error Contents: (0,)
                                            
Traceback (most recent call last):
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 602in <module>
                                                
Main()
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 40in __init__
                                                self
._StartInfoActions()
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py"line 298in _StartInfoActions
                                                self
.id GetVenueID(self.location)
                                              
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\LastFM.py"line 196in GetVenueID
                                                
return results["results"]["venuematches"]["venue"][0]["id"]
                                            
KeyError: (0,)
                                            -->
End of Python script error report<--
11:05:24 T:624   ERRORXFILE::CDirectory::GetDirectory Error getting plugin://script.extendedinfo/?info=venueevents&&location=The Forum Los Angeles 

Also if I enter "House of Blues" I get a list for "House of Blues" for Boston only. They are all over and we have them here. like in Hollywood, Ca, they got a "House of Blues". On the last.fm website it has the name as "House of Blues (Sunset Strip)" if I try and enter that I get an error same as above even though it did find it...

{"results": {"opensearch:Query": {"startPage": "1", "#text": "", "role": "request", "searchTerms": "House of Blues (Sunset Strip)"}, "@attr": {"for": "House of Blues (Sunset Strip)"}, "opensearch:itemsPerPage": "50", "opensearch:totalResults": "5", "venuematches": {"venue": {"website": "http://www.houseofblues.com/venues/clubvenues/losangeles/", "name": "House of Blues (Sunset Strip)", "url": "http://www.last.fm/venue/8779099+House+of+Blues+(Sunset+Strip)", "image": [{"#text": "http://userserve-ak.last.fm/serve/34/231441.jpg", "size": "small"}, {"#text": "http://userserve-ak.last.fm/serve/64/231441.jpg", "size": "medium"}, {"#text": "http://userserve-ak.last.fm/serve/126/231441.jpg", "size": "large"}, {"#text": "http://userserve-ak.last.fm/serve/252/231441.jpg", "size": "extralarge"}, {"#text": "http://userserve-ak.last.fm/serve/_/231441/House+of+Blues+Sunset+Strip.jpg", "size": "mega"}], "phonenumber": "(323) 848-5100", "location": {"postalcode": "90069", "city": "West Hollywood", "geo:point": {"geo:long": "-118.373663", "geo:lat": "34.095001"}, "street": "8430 Sunset Blvd", "country": "United States"}, "id": "8779099"}}, "opensearchConfusedtartIndex": "0"}}
Reply
thx for the info. it seems as if the LastFM Api returns a different JSON structure when only one result is found. (dict instead of list with one dict included)
try newest commit: https://github.com/phil65/script.extende...91e277a545
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2014-10-27, 20:28)phil65 Wrote: thx for the info. it seems as if the LastFM Api returns a different JSON structure when only one result is found. (dict instead of list with one dict included)
try newest commit: https://github.com/phil65/script.extende...91e277a545

Bammmm!!!... again... you nailed it. Works like a charm. Thanks. Hey if you need anything that I can help you with.. any testing or anything you be sure to let me know. I will be more than happy to help. Thanks again.
Reply
Is there any way to make items without thumbs to be not included in a dynamic list.?
For example... using this content tag to get a list of albums, sometimes there are one or two without thumbs.
If possible I don't want to include them in the list contents if they don't have thumbs. Thanks Phil.

PHP Code:
<content>plugin://script.extendedinfo?info=discography&amp;&amp;artistname=$INFO[Window(Home).Property(Artist)]</content> 
Reply
(2014-10-29, 01:14)woodside Wrote: Is there any way to make items without thumbs to be not included in a dynamic list.?
For example... using this content tag to get a list of albums, sometimes there are one or two without thumbs.
If possible I don't want to include them in the list contents if they don't have thumbs. Thanks Phil.

PHP Code:
<content>plugin://script.extendedinfo?info=discography&amp;&amp;artistname=$INFO[Window(Home).Property(Artist)]</content> 

In theory yes, but I won´t implement an option for that, sorry.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
  • 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 151

Logout Mark Read Team Forum Stats Members Help
script.extendedinfo29