def process(option, params):
    import sys
    addon = xbmcaddon.Addon(ADDONID)
    path  = addon.getAddonInfo('path')
    sys.path.insert(0, path)

    import vpn
    import browser
    country = browser.getCountry('plugin.program.vpnicity', vpn.GetCountries())
    vpn.BestVPN(country)
Пример #2
0
def process(option, params):
    import sys
    addon = xbmcaddon.Addon(ADDONID)
    path = addon.getAddonInfo('path')
    sys.path.insert(0, path)

    import vpn
    import browser
    country = browser.getCountry('plugin.program.vpnicity', vpn.GetCountries())
    vpn.BestVPN(country)
Пример #3
0
def AutoSelectCity(plugin, country):
    cities = GetCities(country)

    theList = []

    for city in cities:
        label = '%s (%d)' % (city[0], city[2])
        theList.append([label, label, city[1]])

    import browser
    choice = browser.getCountry(ADDONID, theList)

    for city in cities:
        label = '%s (%d)' % (city[0], city[2])
        if choice == label:
            return VPN(city[0], city[1], city[3])
Пример #4
0
def AutoSelectCity(plugin, country):
    cities = GetCities(country)

    theList = []

    for city in cities:
        label = '%s (%d)' % (city[0], city[2])
        theList.append([label, label, city[1]])

    import browser
    choice = browser.getCountry(ADDONID, theList)

    for city in cities:
        label = '%s (%d)' % (city[0], city[2])
        if choice == label:
            return VPN(city[0], city[1], city[3])
Пример #5
0
#
#       Copyright (C) 2015
#       Sean Poyser ([email protected]) and Richard Dean ([email protected])
#
#  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
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with XBMC; see the file COPYING.  If not, write to
#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#  http://www.gnu.org/copyleft/gpl.html
#


import vpn
import browser
import vpn_utils as utils

country = browser.getCountry(utils.ADDONID, vpn.GetCountries())
vpn.BestVPN(country)
Пример #6
0
def manual():
    import vpn
    import browser
    country = browser.getCountry(ADDONID, vpn.GetCountries())
    vpn.BestVPN(country)
Пример #7
0
def manual():
    import vpn
    import browser
    country = browser.getCountry(ADDONID, vpn.GetCountries())
    vpn.BestVPN(country)
Пример #8
0
#
#       Copyright (C) 2015
#       Sean Poyser ([email protected]) and Richard Dean ([email protected])
#
#  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
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with XBMC; see the file COPYING.  If not, write to
#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#  http://www.gnu.org/copyleft/gpl.html
#

import vpn
import browser
import vpn_utils as utils

country = browser.getCountry(utils.ADDONID, vpn.GetCountries())
vpn.BestVPN(country)