Beispiel #1
0
elif action == 'animelist':
    from resources.lib.indexers import animeshows
    animeshows.Indexer().get(anime_id)

elif action == 'get_episodes':
    from resources.lib.indexers import animeepisodes
    animeepisodes.Indexer().get(anime_id)

elif action == "get_by_select":
    from resources.lib.indexers import animeshows
    animeshows.Indexer().get_by_select(stype, sort, status, genre, offset)

elif action == 'play':
    from resources.lib.modules.player import play
    play(anime_id, episode_id)

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

elif action == 'clearCache':
    from resources.lib.modules import cache
    cache.cache_clear()

elif action == "watched":
    from resources.lib.modules import watched
    watched.Watched().mark(anime_id, episode_id, unmark)

elif action == "add_favorite":
    from resources.lib.modules import favorites
Beispiel #2
0
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        You should have received a copy of the GNU General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
'''

from resources.lib import action, url, query

if action is None:
    from resources.lib.indexers import navigator
    navigator.root()

elif action == 'play':
    from resources.lib.modules import player
    player.play(url)

elif action == 'add':
    from resources.lib.modules import tools
    tools.add_to_history()

elif action == 'readme':
    from resources.lib.modules import tools
    tools.readme()

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

elif action == 'clear_history':
    from resources.lib.modules import tools
Beispiel #3
0
    readme()

elif action == 'text_viewer':

    from resources.lib.modules.player import text_viewer
    text_viewer(plot, title, permalink=query)

elif action == 'comment_scraper':

    from resources.lib.modules.player import comment_scraper
    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)
Beispiel #4
0
elif action == 'animelist':
    from resources.lib.indexers import animeshows
    animeshows.Indexer().get(anime_id)

elif action == 'get_episodes':
    from resources.lib.indexers import animeepisodes
    animeepisodes.Indexer().get(anime_id)

elif action == "get_by_select":
    from resources.lib.indexers import animeshows
    animeshows.Indexer().get_by_select(stype, sort, status, genre, offset)

elif action == 'play':
    from resources.lib.modules.player import play
    play(anime_id, episode_id)

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

elif action == 'tools':
    from resources.lib.indexers import tools
    tools.tools()
	
elif action == 'clearCache':
    from resources.lib.modules import cache
    cache.cache_clear()
	
elif action == 'clearFavorites':
    from resources.lib.modules import favorites
action = params.get('action')
url = params.get('url')
quality = params.get('quality')
query = params.get('query')
title = params.get('title')
# options = params.get('options')

if action is None:
    from resources.lib.indexers import navigator
    navigator.root()

elif action == 'play':
    from resources.lib.modules import player
    if query:
        query = {'title': query}
    player.play(url, query, quality)

elif action == 'add':
    from resources.lib.modules import tools
    tools.add_to_history()

elif action == 'readme':
    from resources.lib.modules import tools
    tools.readme()

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

elif action == 'clear_history':
    from resources.lib.modules import tools
Beispiel #6
0
url = params.get('url')
quality = params.get('quality')
query = params.get('query')
title = params.get('title')
image = params.get('image')
# options = params.get('options')

if action is None:
    from resources.lib.indexers import navigator
    navigator.root()

elif action == 'play':
    from resources.lib.modules import player
    if query:
        query = {'title': query}
    player.play(url, query, quality, image)

elif action == 'add':
    from resources.lib.modules import tools
    tools.add_to_history()

elif action == 'readme':
    from resources.lib.modules import tools
    tools.readme()

elif action == 'refresh':
    from tulip.control import refresh
    refresh()

elif action == 'clear_history':
    from resources.lib.modules import tools
from tulip.init import params

action = params.get('action')
url = params.get('url')
query = params.get('query')
title = params.get('title')

if action is None:
    from resources.lib.indexers import navigator
    navigator.root()

elif action == 'play':
    from resources.lib.modules import player
    if query:
        query = {'title': query}
    player.play(url, query)

elif action == 'add':
    from resources.lib.modules import tools
    tools.add_to_history()

elif action == 'readme':
    from resources.lib.modules import tools
    tools.readme()

elif action == 'refresh':
    from tulip.control import refresh
    refresh()

elif action == 'clear_history':
    from resources.lib.modules import tools