Beispiel #1
0
    SPDX-License-Identifier: GPL-3.0-only
    See LICENSES/GPL-3.0-only for more information.
'''

import json
from tulip.bookmarks import add
from tulip.control import get_info_label, transPath

url = {
    'title': get_info_label('ListItem.Label'),
    'image': get_info_label('ListItem.Art(thumb)'),
    'fanart': get_info_label('ListItem.Art(fanart)'),
    'plot': get_info_label('ListItem.Plot'),
    'bookmark': get_info_label('ListItem.FolderPath'),
    'url': get_info_label('ListItem.FolderPath')
}

if 'playlist' not in url['url']:
    url.update({'action': 'play', 'isFolder': 'False'})
else:
    url.update({
        'action': 'youtube',
        'isFolder': 'False',
        'isPlayable': 'False'
    })

path = transPath(
    'special://profile/addon_data/plugin.video.antenna.gr/bookmarks.db')

add(json.dumps(url), path)
def addBookmark(url):

    bookmarks.add(url)
Beispiel #3
0
elif action == 'radio':
    from resources.lib.indexers import radios
    radios.Indexer(argv=argv).radio()

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
Beispiel #4
0
    comment_scraper(plot, title)

elif action == 'play':

    from resources.lib.modules.player import play
    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
Beispiel #5
0
elif action == 'radio':

    radios.Indexer().radio()

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':