 
   getOrFetchOverview = (success) ->
     if episode.overview?
-      console.log "Overview already available"
+      # console.log "Overview already available"
       success(episode)
       return
-    console.log "fetching overview..."
+    # console.log "fetching overview..."
     traktvRequest "/search?id_type=trakt-episode&id=#{episode.episodeID}",
       (response, status, req) ->
-        console.log "Fetched overview: #{response}"
+        # console.log "Fetched overview: #{response}"
         if response
           episode.overview = response[0].episode.overview
         success(episode) if success?

  fetchEpisodeIDAndTitle = (showID, seasonNumber, episodeNumber, successFetchEpisodeIDAndTitle) ->
    traktvRequest "/shows/#{showID}/seasons/#{seasonNumber}/episodes/#{episodeNumber}",
      (response, status, req) ->
        console.log "fetchEpisodeIDAndTitle response: #{response}"
        episode.episodeID = response.ids.trakt
        episode.episodeTitle = response.title

        successFetchEpisodeIDAndTitle(episode) if successFetchEpisodeIDAndTitle?

  if episode.episodeID? and episode.episodeTitle?
    console.log "going to fetch overview"
    getOrFetchOverview callback
  else
    console.log "going to fetch ep id and title"
    fetchEpisodeIDAndTitle showID, seasonNumber, episodeNumber,
      (episode) ->
        console.log "fetched id and title: #{JSON.stringify episode}"
        getOrFetchOverview callback



            action: ->
              localStorage.clear()
              initSettings()
              notificationCard = new UI.Card(
                title: 'Sign-in required'
                body: 'Open the Pebble App and configure Pebble Shows.'
              )
              notificationCard.show()

              console.log "Local storage cleared"
          }, {
            title: 'Refresh'
