def get_episode(series, season_number, episode_number = nil,  page_id = nil)
      if episode_number
        url = "/series/#{series.id}/episodes/query?airedSeason=#{season_number}&airedEpisode=#{episode_number}"
      else
        url = "/series/#{series.id}/episodes/query?airedSeason=#{season_number}"
      end
      url = url + "&page=#{page_id}" unless page_id.nil?

      response = self.get(url)
      return [] unless response["data"]
      data = []
      if response['links']['next'].nil?
        data = response["data"]
      else
        response["data"].each {|x| data << x}
        get_episode(series, season_number, episode_number, response['links']['next'])
      end
      data.map {|e| self.get_episode_by_id(e["id"])}
    end
def get_episode(series, season_number, episode_number = nil,  page_id = nil)
      if episode_number
        url = "/series/#{series.id}/episodes/query?airedSeason=#{season_number}&airedEpisode=#{episode_number}"
      else
        url = "/series/#{series.id}/episodes/query?airedSeason=#{season_number}"
      end
      url = url + "&page=#{page_id}" unless page_id.nil?

      response = self.get(url)
      return [] unless response["data"]
      data = []
      if response['links']['next'].nil?
        data = response["data"]
      else
        response["data"].each {|x| data << x}
        get_episode(series, season_number, episode_number, response['links']['next'])
      end
      data.map {|e| self.get_episode_by_id(e["id"])}
    end
基于季数、集数获取集的详细信息