 
   show: -> @menu.show()
 
+  isEpisodeListedInSection: (episodeNumber, section) ->
+    episodeNumber in (item.data.episodeNumber for item in section.items)
+
   initHandlers: ->
     @menu.on 'longSelect', (e) =>
       element = e.item

          detailedItemCard.show()


  _createItem: (showID, showTitle, episodeTitle, seasonNumber, episodeNumber, isNextEpisodeListed, completed) ->
    subtitle = "Season #{seasonNumber} Ep. #{episodeNumber}"
    return {
      title: episodeTitle

              2000
            )

            trakttv.fetchShowProgress data.showID,
              (err, show) =>
                # TODO: display notification
                return if err?
                if not isNextEpisodeForItemAired(show)
                  return

                nextEpisode = show.next_episode
                thisSection = @menu.section e.sectionIndex

                if @isEpisodeListedInSection nextEpisode.number, thisSection
                  return

                newItem = @_createItem(
                  data.showID
                  data.showTitle
                  nextEpisode.title
                  nextEpisode.season
                  nextEpisode.number
                  false
                )

