function buildFeeds(videos, options) {
  if (!global.WF.options.buildRSS) {
    return;
  }
  const articles = [];

  videos.forEach((video) => {
    const iframe = `
      <iframe width="560" height="315" frameborder="0" allowfullscreen
        src="https://www.youtube.com/embed/${video.snippet.resourceId.videoId}">
      </iframe>
      <br><br>
    `;
    const description = video.snippet.description.replace(/\n/g, '<br>\n');
    const content = iframe + description;
    let publishedAtMoment = moment(video.snippet.publishedAt);
    publishedAtMoment = publishedAtMoment.utcOffset(0, true);

    articles.push({
      url: video.snippet.resourceId.videoId,
      title: video.snippet.title,
      description: video.snippet.description,
      image: video.snippet.thumbnails.default,
      datePublishedMoment: publishedAtMoment,
      dateUpdatedMoment: publishedAtMoment,
      tags: [],
      analyticsUrl: `/web/videos/${video.snippet.resourceId.videoId}`,
      content: content,
      atomAuthor: 'Google Developers',
    });
  });

  // Note - use last updated instead of now to prevent feeds from being
  // generated every single time. This will only generate if the feeds are
  // actually updated.
  const lastUpdated = articles[0].datePublishedMoment;
  const context = {
    title: 'Web Shows - Google Developers',
    description: 'YouTube videos from the Google Chrome Developers team',
    feedRoot: 'https://developers.google.com/web/shows/',
    host: 'https://youtu.be/',
    baseUrl: 'https://youtube.com/user/ChromeDevelopers/',
    analyticsQS: '',
    atomPubDate: wfHelper.dateFormatAtom(lastUpdated),
    rssPubDate: wfHelper.dateFormatRSS(lastUpdated),
    articles: articles,
  };
  generateFeed('atom.xml', context, options);
  generateFeed('rss.xml', context, options);
}
Builds the RSS & ATOM feeds from a YouTube video feed.

@param {!Array} videos Array of videos from YouTube.
@param {!Object=} options Options used to generate the feed