Beispiel #1
0
def check_device_id():
    device_id = ADDON.getSetting(id='deviceId')
    amazon_device = 'Amazon'
    amazon_device = amazon_device.encode("hex")
    old_asus = 'ASUS'
    old_asus = old_asus.encode("hex")
    if amazon_device in device_id or old_asus in device_id:
        sony = SONY()
        sony.logout()
        device_id = ''

    if device_id == '':
        create_device_id()
Beispiel #2
0
def check_device_id():
    device_id = ADDON.getSetting(id='deviceId')
    amazon_device = 'Amazon'
    amazon_device = amazon_device.encode("hex")
    old_asus = 'ASUS'
    old_asus = old_asus.encode("hex")
    if amazon_device in device_id or old_asus in device_id:
        sony = SONY()
        sony.logout()
        device_id = ''
    
    if device_id == '':
        create_device_id()
def check_device_id():
    DEVICE_ID = ADDON.getSetting(id='deviceId')
    amazon_device = 'Amazon'
    amazon_device = amazon_device.encode("hex")
    old_asus = 'ASUS'
    old_asus = old_asus.encode("hex")
    if amazon_device in DEVICE_ID or old_asus in DEVICE_ID:
        sony = SONY()
        sony.logout()
        DEVICE_ID = ''

    if DEVICE_ID == '':
        create_device_id()
        DEVICE_ID = ADDON.getSetting(id='deviceId')