       $li.parent().find(".playing").addClass "disabled"
       $li.siblings().removeClass "playing"
       $li.addClass "playing"
+      STARTED_PLAYBACK = true;
 
     start_playback: ->
       start  = self.get_playing($b_list) + 1

  youtube_url      = "http://gdata.youtube.com/feeds/api/videos?q=<%= code %>&format=5&max-results=1&v=2&alt=jsonc"

  YTPlayer = ''


  # this is implicitly returned by coffee-script.
  self = {

          html = template tdata
          $ul.append html


          self.start_playback() if not STARTED_PLAYBACK

    fill_output: ($target, urls) ->
      $target.val urls.join "\n"
