diff --git a/cron/poll_video_rss.php b/cron/poll_video_rss.php index 751ed2d..aa6fd2e 100644 --- a/cron/poll_video_rss.php +++ b/cron/poll_video_rss.php @@ -141,9 +141,19 @@ */ if ($type == 'committee') { + $title_parts = explode(' - ', $item->title); - $committee = $title_parts[0]; + $committee_name = $title_parts[0]; $meeting_time = end($title_parts); + + /* + * Figure out the committee ID. + */ + $committee = new Committee; + $committee->chamber = $chamber; + $committee->name = $committee_name; + $committee_id = $committee->get_id(); + } /* @@ -161,7 +171,8 @@ */ if ($type == 'committee') { - $video_data['committee'] = $committee; + $video_data['committee'] = $committee_name; + $video_data['committee_id'] = $committee_id; $video_data['meeting_time'] = $meeting_time; }