@property
    def previous_episode(self):
        if self.__previousepisode is None and self.links in 'previousepisode' and 'href' in self.links['previousepisode']:
            episode_id = self.links['previousepisode']['href'].rsplit('/',1)[1]
            if episode_id.isdigit():
                self.__previousepisode = episode_by_id(episode_id)
        return self.__previousepisode
dataset/ETHPy150Open srob650/pytvmaze/pytvmaze/tvmaze.py/Show.previous_episode/swapped operands of `in`