def clear(self):
     control.window.clearProperty(property + '.status')
     control.window.clearProperty(property + '.name')
     control.window.clearProperty(property + '.image')
     control.window.clearProperty(property + '.percent')
     control.window.clearProperty(property + '.speed')
     control.window.clearProperty(property + '.size')
     control.refresh()
def removeDownload(url):
    try:

        def download():
            return []

        result = cache.get(download, 600000000, table='rel_dl')
        if result == '': result = []
        result = [i for i in result if not i['url'] == url]
        if result == []: result = ''

        def download():
            return result

        result = cache.get(download, 0, table='rel_dl')

        control.refresh()
    except:
        control.infoDialog('You need to remove file manually',
                           'Can not remove from Queue')
Example #3
0
elif action == 'tvWidget':
    from resources.lib.indexers import episodes
    episodes.episodes().widget()

elif action == 'calendars':
    from resources.lib.indexers import episodes
    episodes.episodes().calendars()

elif action == 'episodeUserlists':
    from resources.lib.indexers import episodes
    episodes.episodes().userlists()

elif action == 'refresh':
    from resources.lib.modules import control
    control.refresh()

elif action == 'queueItem':
    from resources.lib.modules import control
    control.queueItem()

elif action == 'openSettings':
    from resources.lib.modules import control
    control.openSettings(query)

elif action == 'artwork':
    from resources.lib.modules import control
    control.artwork()

elif action == 'addView':
    from resources.lib.modules import views