Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hornsby committed Oct 12, 2013
2 parents bd3c35b + bfd46f9 commit 286ba6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.openvpn" name="OpenVPN" version="2.0.0" provider-name="brianhornsby">
<addon id="script.openvpn" name="OpenVPN" version="2.0.1" provider-name="brianhornsby">
<requires>
<import addon="xbmc.python" version="2.0"/>
<import addon="script.module.beautifulsoup" version="3.0.8"/>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*** 2.0.1 ***
Fixes for issues #8 and #9.

*** 2.0.0 ***
Complete rewrite of code and the way the script works.

Expand Down
4 changes: 2 additions & 2 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def log_error(msg):

def get_geolocation():
try:
url = 'http://api.ipinfodb.com/v3/ip-city/?key=24e822dc48a930d92b04413d1d551ae86e09943a829f971c1c83b7727a16947f&format=XML'
url = 'http://api.ipinfodb.com/v3/ip-city/?key=24e822dc48a930d92b04413d1d551ae86e09943a829f971c1c83b7727a16947f&format=xml'
req = urllib2.Request(url)
f = urllib2.urlopen(req)
result = f.read()
Expand All @@ -101,7 +101,7 @@ def display_location():
image = _settings.get_path('%s%s%s' % (
'resources/images/', geolocation.response.countrycode.string.lower(), '.png'))
utils.notification(_addonname, _settings.get_string(4000) % (
geolocation.response.ipaddress.string, geolocation.response.countryname.string), image=image)
geolocation.response.ipaddress.string, geolocation.response.countryname.string.title()), image=image)


def display_notification(text, subtext=False):
Expand Down

0 comments on commit 286ba6b

Please sign in to comment.