Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
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)
Пример #4
0
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)