def viewClips(url): """ Displays the latest clips for a program """ clips = svt.getClips(url) if not clips: helper.errorMsg("No clips found!") return for clip in clips: createDirItem(clip, MODE_VIDEO)
def viewEpisodes(url): """ Displays the episodes for a program with URL 'url'. """ episodes = svt.getEpisodes(url) if not episodes: helper.errorMsg("No episodes found!") return for episode in episodes: createDirItem(episode, MODE_VIDEO)