Installing the Modules
om_airing includes a submodule om_airing_feed.
om_airing - Creates the om_airing content type with the following fields: field_om_airing_date, field_om_airing_duration*, field_om_airing_mpeg2
om_airing_feed - Creates the om_airing_feed content type that utilizes FeedAPI to pull airing information from RSS.
*Hint: Some people have said the duration field is unnecessary because field_om_airing_date has both the start and end dates and times. The duration is the difference. True, but have the calculated duration stored in a field makes filtering upcoming airings to only shows longer that 60 seconds much easier.
Configure Open Media Airing Feed Content Type
Under the Feed API settings:
check - Is a feed content type
Supply feed as: URL
Default settings: Update existing feed items
Parser SimplePie: Enable
FeedAPI Node - create nodes from feed items: Enable
Node type of feed items: Airing
FeedAPI Inherit - pass on taxonomy, author, language and organic group information from feed to feed items: enabled
checked - Feed item nodes inherit taxonomy settings from parent feed.
Create a Feed
Create a new Open Media Airing Feed node
Title: [YOUR CHANNEL NAME]
Channels: [SELECT YOUR CHANNEL]
URL: [VARIES BY PLAYBACK SERVER]
Mapping the Elements of Feed Items to Airing Fields
Data fields for the Open Media Airing module are populated by an RSS feed from the playback server. The RSS feed contains specific information about each show. If you have multiple playback channels, it is recommended to have an RSS feed for each one. At a minimum, the RSS feed must include the following XML elements that are mapped to the following om_airing content type fields:
- title ---> Map to Title (node)
- description ---> Map to Body (node)
- start time/date ---> Map to field_om_airing_date (date): Start Date (date and time)
- end time/date ---> Map to field_om_airing_date (date): End Date (date and time)
- filename ---> Map to MPEG2 (content)
Working with om_show:
If om_show is enabled, om_airing will attempt to create a nodereference between the new airing node and an existing show node (on cron) based on the mpeg2 file name. This only works if local mpeg2 file storage is chosen.