/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     if (!DebugHelpers::shouldSiteBeLive()) {
         $this->info('Not running because site should not be live at the moment.');
         return;
     }
     $this->info('Removing any dvr recordings where there is vod that has gone live.');
     $mediaItemVideoModels = MediaItemVideo::with("mediaItem", "mediaItem.liveStreamItem")->live()->whereHas("mediaItem", function ($q) {
         $q->whereHas("liveStreamItem", function ($q2) {
             $q2->live(false)->hasDvrRecording();
         });
     })->get();
     foreach ($mediaItemVideoModels as $a) {
         $mediaItemLiveStream = $a->mediaItem->liveStreamItem;
         $this->info("Requesting deletion of any dvr recordings for media item live stream with id " . $mediaItemLiveStream->id . " as media item now has live vod.");
         $mediaItemLiveStream->removeDvrs();
     }
     $this->info("Finished.");
 }