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()
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()
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()
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()