(
        self, episode_status, podcasts, domain, include_actions, user, devices
    )
return t
Get episode data for an episode status object
Get episode data for an episode status object
Get episode data for an episode status object
def get_episode_data(
        self, episode_status, podcasts, domain, include_actions, user, devices
    ):
        """Get episode data for an episode status object"""

        # TODO: shouldn't the podcast_id be in the episode status?
        podcast_id = episode_status.episode.podcast
        podcast = podcasts.get(podcast_id, None)
        t = episode_data(episode_status.episode, domain, podcast)
        t["status"] = episode_status.status

        # include latest action (bug 1419)
        # TODO
        if include_actions and episode_status.action:
            t["action"] = episode_action_json(episode_status.action, user)

        return t
def get_episode_data ( self , episode_status , podcasts , domain , include_actions , user , devices ) : # TODO: shouldn't the podcast_id be in the episode status? podcast_id = episode_status . episode . podcast podcast = podcasts . get ( podcast_id , None ) t = episode_data ( episode_status . episode , domain , podcast ) t [ "status" ] = episode_status . status # include latest action (bug 1419) # TODO if include_actions and episode_status . action : t [ "action" ] = episode_action_json ( episode_status . action , user ) return t