Пример #1
0
def main():
    if '/movies' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    elif '/tv' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
    elif '/music' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'musicvideos')
    elif '/live' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'LiveTV')
    elif '/list' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'videos')
    else:
        xbmcplugin.setContent(int(sys.argv[1]), 'videos')
    plugin.run()
Пример #2
0
def main():
    if '/movies' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    elif '/tv' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
    elif '/music' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'musicvideos')
    elif '/live' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'LiveTV')
    elif '/list' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'videos')
    else:
        xbmcplugin.setContent(int(sys.argv[1]), 'videos')
    plugin.run()
Пример #3
0
def main():
    if "/movies" in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), "movies")
    elif "/tv" in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), "tvshows")
    elif "/music" in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), "musicvideos")
    elif "/live" in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), "LiveTV")
    elif "/list" in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), "playlists")
    else:
        pass
    plugin.run()
Пример #4
0
def main():
    if '/movies' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    elif '/tv/play' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
    elif '/tvdb' in sys.argv[0] and sys.argv[0].count('/') < 6:
        xbmcplugin.setContent(int(sys.argv[1]), 'seasons')
    elif '/tvdb' in sys.argv[0] and sys.argv[0].count('/') > 5:
        xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
    elif '/tv' in sys.argv[0] and not '/settings' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
    elif '/music' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'musicvideos')
    elif '/live' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'LiveTV')
    elif '/list' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'videos')
    plugin.run()
Пример #5
0
def main():
    if '/movies' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    elif '/tv' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
    plugin.run()
Пример #6
0
def main():
    if '/movies' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    elif '/tv' in sys.argv[0]:
        xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')
    plugin.run()