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: tv_show.rb
    path of file: ./repos/muvee/app/models
    
    the code of the file until where you have to start completion: class TvShow < Video
  include HasMetadata
  include 
    
  def reanalyze
    super
    associate_with_series

    if series.blank? && sources.count == 0
      self.destroy
    else
      associate_with_genres
      extract_metadata
      self.save
    end