You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: row.rb
    path of file: ./repos/kitsu-server/app/services/the_tvdb_service
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class TheTvdbService
  class Row < TheTvdbService
    attr_reader :media, :data, :tvdb_episode_id, :tvdb_series_id

    def initialize(media, data, tvdb_series_id, first_number)
      @media = media
      @data = data
      @tvdb_episode_id = data['id']
      @tvdb_series_id = tvdb_series_id
      @first_number = first_number
    end

    def update_episode
      return if number.blank
    
    def update_episode
      return if number.blank?

      episode.titles = titles.merge(episode.titles)
      episode.canonical_title ||= 'en_us'
      episode.number ||= number
      episode.season_number ||= season_number
      episode.relative_number ||= relative_number
      episode.description['en'] ||= synopsis
      episode.thumbnail = thumbnail if episode.thumbnail.blank?
      episode.airdate ||= airdate
      episode.save!
      episode
    rescue StandardError => e
      Sentry.capture_exception(e)
    end