def play_movie(url): streams, subtitles = swefilm.get_movie_streams(url) print streams if len(streams) == 0: raise Exception("Failed to open stream") stream = quality_select_dialog(streams) plugin.set_resolved_url(stream, subtitles[0] if len(subtitles) else None)
def play_movie(url): streams = swefilm.get_movie_streams(url) stream = quality_select_dialog(streams) plugin.set_resolved_url(stream)