Example #1
0
 def __init__(self, csock, isock, ip=""):
     StoppableThread.__init__(self)
     self.csock = csock
     self.isock = isock
     self.xbmc = XBMCClient("PS3 Blu-Ray Remote",
                            ICON_PATH + "/bluetooth.png")
     self.set_timeout(300)
Example #2
0
def update_xbmc_object():
    serversettings = server_settings()
    host = serversettings['hostname']

    try:
        icon = RUNDIR + '/static/images/maraschino_logo.png'

        xbmc = XBMCClient('Maraschino', icon, ip=host)

    except:
        xbmc = None

    return xbmc
Example #3
0
def update_xbmc_object():
    host = get_setting_value('server_hostname')
    try:
        icon = os.path.abspath('static/images/maraschino_logo.png')

        if not os.path.exists(icon):
            icon = os.path.abspath(
                'maraschino/static/images/maraschino_logo.png')

        xbmc = XBMCClient('Maraschino', icon, ip=host)

    except:
        xbmc = None

    return xbmc