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

Commit

Permalink
Updated plugin to use Kodi name.
Browse files Browse the repository at this point in the history
Updated copyright date.
  • Loading branch information
Brian Hornsby committed Feb 7, 2015
1 parent fa88b76 commit 1a88f6f
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 408 deletions.
17 changes: 2 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@

resources/__init__.pyo

resources/__init__.pyc

xbmcsettings.pyc

xbmcsettings.pyo

xbmcutils.pyc

xbmcutils.pyo

resources/lib/__init__.pyc

resources/*.pyc
resources/lib/*.pyc
*.pyc
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
OpenVPN for XBMC
OpenVPN for Kodi
==========
A script that allows you to control OpenVPN from within XBMC.
A script that allows you to control OpenVPN from within Kodi.

Features
-----
- Start and stop OpenVPN from with XBMC.
- Start and stop OpenVPN from with Kodi.
- Setup multiple VPN connections.
- Display current geo-location.

Expand All @@ -15,7 +15,7 @@ Screenshots

Installation
------
Download the latest zip file and install the addon. See [http://wiki.xbmc.org/?title=Add-ons#How_to_install_from_a_ZIP_file][1] for more details on installing addons from zip file.
Download the latest zip file and install the addon. See [http://kodi.wiki/view/HOW-TO:Install_an_Add-on_from_a_zip_file][1] for more details on installing addons from zip file.

Usage
------
Expand Down Expand Up @@ -51,9 +51,17 @@ The following settings are available.

**Password is required**: Set to true if a password is required when using sudo. Default: true

FAQ
---

**Is this plugin available in a Kodi addons repository?** No

**I can't get the OpenVPN plugin to work on Raspberry Pi?** Before asking me for help I suggest reading the following [guide][3].

License
------
OpenVPN for XBMC is licensed under the [GPL 3.0 license][2].
OpenVPN for Kodi is licensed under the [GPL 3.0 license][2].

[1]: http://wiki.xbmc.org/?title=Add-ons#How_to_install_from_a_ZIP_file
[1]: http://kodi.wiki/view/HOW-TO:Install_an_Add-on_from_a_zip_file
[2]: http://www.gnu.org/licenses/gpl-3.0.html
[3]: http://forums.tvaddons.ag/threads/24769-How-to-set-up-your-VPN-on-raspberry-pi-using-Brain-Hornsby-Openvpn-for-XBMC
9 changes: 6 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
<extension point="xbmc.python.script" library="default.py"/>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<summary lang="en">OpenVPN addon for XBMC.</summary>
<description lang="en">This addon allows you to set up a number of OpenVPN configurations, which you can then run from XBMC.
For more information on setting up this addon see http://brianhornsby.com/xbmc_plugins/openvpn</description>
<summary lang="en">OpenVPN addon for Kodi.</summary>
<description lang="en">This addon allows you to set up a number of OpenVPN configurations, which you can then run from Kodi.
For more information on setting up this addon see http://brianhornsby.com/kodi_plugins/openvpn</description>
<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
<website>http://brianhornsby.com/kodi_addons/openvpn</website>
<source>https://github.com/brianhornsby/script.openvpn</source>
</extension>
</addon>
11 changes: 5 additions & 6 deletions default.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/*
# *
# * OpenVPN for XBMC.
# * OpenVPN for Kodi.
# *
# * Copyright (C) 2013 Brian Hornsby
# * Copyright (C) 2015 Brian Hornsby
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -30,15 +30,14 @@
from BeautifulSoup import BeautifulSoup

import resources.lib.openvpn as vpn
import resources.lib.xbmcsettings as settings
import resources.lib.xbmcutils as utils
import resources.lib.kodisettings as settings
import resources.lib.kodiutils as utils

# Set some global values.
_xbmcrevision = xbmc.getInfoLabel('System.BuildVersion')
_addonid = 'script.openvpn'

# Initialise settings.
_settings = settings.XBMCSettings(_addonid, sys.argv)
_settings = settings.KodiSettings(_addonid, sys.argv)

# Get addon information.
_addonname = _settings.get_name()
Expand Down
371 changes: 0 additions & 371 deletions resources/images/index.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/*
# *
# * OpenVPN for XBMC.
# * OpenVPN for Kodi.
# *
# * Copyright (C) 2013 Brian Hornsby
# * Copyright (C) 2015 Brian Hornsby
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
Expand All @@ -23,7 +23,7 @@
import xbmc


class XBMCSettings:
class KodiSettings:
def __init__(self, addonid, argv):
self.__addon__ = xbmcaddon.Addon(id=addonid)
self.__argv__ = argv
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/xbmcutils.py → resources/lib/kodiutils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/*
# *
# * OpenVPN for XBMC.
# * OpenVPN for Kodi.
# *
# * Copyright (C) 2013 Brian Hornsby
# * Copyright (C) 2015 Brian Hornsby
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/openvpn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/*
# *
# * OpenVPN for XBMC.
# * OpenVPN for Kodi.
# *
# * Copyright (C) 2013 Brian Hornsby
# * Copyright (C) 2015 Brian Hornsby
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 1a88f6f

Please sign in to comment.