def deleteBookmark(url):

    bookmarks.delete(url)
Esempio n. 2
0
elif action == 'papers':
    from resources.lib.modules import helpers
    helpers.papers()

elif action == 'papers_index':
    from resources.lib.indexers import news
    news.Indexer(argv=argv).papers_index()

elif action == 'addBookmark':
    from tulip import bookmarks
    bookmarks.add(url)

elif action == 'deleteBookmark':
    from tulip import bookmarks
    bookmarks.delete(url)

elif action == 'bookmarks':
    from resources.lib.indexers import bookmarks
    bookmarks.Indexer(argv=argv).bookmarks()

elif action == 'search':
    from resources.lib.indexers import search
    search.Indexer(argv=argv).search()

elif action == 'settings':
    from resources.lib.indexers import settings
    settings.Indexer(argv=argv).menu()

elif action == 'tools_menu':
    from resources.lib.modules import helpers
Esempio n. 3
0
    play(url, permalink=query)

elif action == 'show_picture':

    from resources.lib.modules.player import show_picture
    show_picture(title, url, permalink=query)

elif action == 'addBookmark':

    from tulip import bookmarks
    bookmarks.add(url)

elif action == 'deleteBookmark':

    from tulip import bookmarks
    bookmarks.delete(url)

elif action == 'bookmarks':

    from resources.lib.indexers import navigator
    navigator.Main().bookmarks()

elif action == 'addSubreddit':

    from tulip import bookmarks
    from resources.lib.modules.tools import saved_subrs
    bookmarks.add(url, file_=saved_subrs)

elif action == 'subscribeSubreddit':

    from resources.lib.modules.reddit import reddit_subs
Esempio n. 4
0
elif action == 'papers':

    utils.papers()

elif action == 'papers_index':

    news.Indexer().papers_index()

elif action == 'addBookmark':

    bm.add(url)

elif action == 'deleteBookmark':

    bm.delete(url)

elif action == 'pin':

    utils.pin()

elif action == 'unpin':

    utils.unpin()

elif action == 'bookmarks':

    bookmarks.Indexer().bookmarks()

elif action == 'clear_bookmarks':
    bm.clear('bookmark',