Exemplo n.º 1
0
elif action == 'premiumizeAdd':
    from resources.lib.api import premiumize
    premiumize.add()

elif action == 'premiumizeTransfers':
    from resources.lib.api import premiumize
    premiumize.transferList()

elif action == 'premiumizeClearFinished':
    from resources.lib.api import premiumize
    premiumize.clearfinished()

elif action == 'premiumizerootFolder':
    from resources.lib.api import premiumize
    premiumize.getFolder('root')

elif action == 'premiumizeOpenFolder':
    from resources.lib.api import premiumize

    premiumize.getFolder(id, meta=meta)

elif action == 'premiumizeDeleteItem':
    from resources.lib.api import premiumize
    premiumize.deleteItem(id, type)

elif action == 'downloadFolder':
    from resources.lib.api import premiumize
    premiumize.downloadFolder(name, id)

elif action == 'premiumizeRename':
Exemplo n.º 2
0
elif action == 'rss_update':
    from resources.lib.modules import rss
    rss.update()

elif action == 'rss_clear':
    import os
    from resources.lib.modules import control
    try: os.remove(control.rssDb)
    except:pass
    try: os.remove(control.rssDb)
    except:pass
    control.refresh()

elif action == 'realizerootFolder':
    from resources.lib.api import premiumize
    premiumize.getFolder('root')

elif action == 'downloadFolder':
    from resources.lib.api import premiumize
    premiumize.downloadFolder(name, id)

elif action == 'downloadZip':
    from resources.lib.api import premiumize
    premiumize.downloadFolder(name, id)

elif action == 'realizerename':
    from resources.lib.api import premiumize
    premiumize.renameItem(title, id, type)

elif action == 'getSearchMovie':
    from resources.lib.indexers import movies