'Get the coming episodes'

def run(self):

    grouped_coming_episodes = ComingEpisodes.get_coming_episodes(self.type, self.sort, True, self.paused)
    data = dict([(section, []) for section in grouped_coming_episodes.keys()])
    for (section, coming_episodes) in grouped_coming_episodes.items():
        for coming_episode in coming_episodes:
            data[section].append({u'airdate': coming_episode[u'airdate'], u'airs': coming_episode[u'airs'], u'ep_name': coming_episode[u'name'], u'ep_plot': coming_episode[u'description'], u'episode': coming_episode[u'episode'], u'indexerid': coming_episode[u'indexer_id'], u'network': coming_episode[u'network'], u'paused': coming_episode[u'paused'], u'quality': coming_episode[u'quality'], u'season': coming_episode[u'season'], u'show_name': coming_episode[u'show_name'], u'show_status': coming_episode[u'status'], u'tvdbid': coming_episode[u'tvdbid'], u'weekday': coming_episode[u'weekday']})
    return _responds(RESULT_SUCCESS, data)
