2014-03-17, 17:22
A few tricks I have learned from messing with the extendedinfo script for the "Near Concerts" panel that I would like to share.
To get concerts in your local area go to http://itouchmap.com/latlong.html and get your latitude and longtitude co-oridinates and enter them in-between the quotes on line #194 of "OnlineMusicInfo.py" in the extendeinfo addon directory.
Before editing line #194 OnlineMusicInfo.py it shows the whole country (U.S.) and the line looks like this
def GetNearEvents(tag = False,festivalsonly = False, lat = "", lon = ""):
Image with original line with nothing between the quotes...
After editing line #194 OnlineMusicInfo.py and entering lat and lon it shows the Los Angeles area
def GetNearEvents(tag = False,festivalsonly = False, lat = "33.774849", lon = "-117.867508"):
You have to reboot xbmc to see the changes.
To get the cache to update every day or set it for however many days you want it to update change Line #144 in OnlineMusicInfo.py in the extendeinfo addon directory too so it will update the cache.
From:
def GetLastFMData(url = "", cache_days = 14):
To:
def GetLastFMData(url = "", cache_days = 1):
It will update every day. Hope someone finds this info useful and will help me out with a problem I may have in the future... thanks
To get concerts in your local area go to http://itouchmap.com/latlong.html and get your latitude and longtitude co-oridinates and enter them in-between the quotes on line #194 of "OnlineMusicInfo.py" in the extendeinfo addon directory.
Before editing line #194 OnlineMusicInfo.py it shows the whole country (U.S.) and the line looks like this
def GetNearEvents(tag = False,festivalsonly = False, lat = "", lon = ""):
Image with original line with nothing between the quotes...
After editing line #194 OnlineMusicInfo.py and entering lat and lon it shows the Los Angeles area
def GetNearEvents(tag = False,festivalsonly = False, lat = "33.774849", lon = "-117.867508"):
You have to reboot xbmc to see the changes.
To get the cache to update every day or set it for however many days you want it to update change Line #144 in OnlineMusicInfo.py in the extendeinfo addon directory too so it will update the cache.
From:
def GetLastFMData(url = "", cache_days = 14):
To:
def GetLastFMData(url = "", cache_days = 1):
It will update every day. Hope someone finds this info useful and will help me out with a problem I may have in the future... thanks