Skip to content

Commit

Permalink
Get the committee ID for this committee video
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Jan 30, 2018
1 parent d91dda3 commit d3142fb
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cron/poll_video_rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

/*
Expand All @@ -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;
}

Expand Down

0 comments on commit d3142fb

Please sign in to comment.