public function FeedsYoutubeParser::getMappingSources in Feeds: YouTube Parser 6
Same name and namespace in other branches
- 7.3 plugins/FeedsYoutubeParser.inc \FeedsYoutubeParser::getMappingSources()
- 7.2 FeedsYoutubeParser.inc \FeedsYoutubeParser::getMappingSources()
Add the extra mapping sources provided by this parser.
Overrides FeedsParser::getMappingSources
File
- ./
FeedsYoutubeParser.inc, line 79 - Feeds parser class for Youtube
Class
- FeedsYoutubeParser
- Class definition for Youtube Parser.
Code
public function getMappingSources() {
return parent::getMappingSources() + array(
'feed_title' => array(
'name' => t('Feed title'),
'description' => t('The title of the pulled feed.'),
),
'guid' => array(
'name' => t('GUID'),
),
'video_id' => array(
'name' => t('Video ID'),
'description' => t('YouTube video unique ID.'),
),
'title' => array(
'name' => t('Video title'),
'description' => t('Video title.'),
),
'author' => array(
'name' => t('Author'),
'description' => t('Author or uploader of the video.'),
),
'updated_datetime' => array(
'name' => t('Updated on (Datetime)'),
),
'updated_timestamp' => array(
'name' => t('Updated on (Timestamp)'),
),
'published_datetime' => array(
'name' => t('Published on (Datetime)'),
),
'published_timestamp' => array(
'name' => t('Published on (Timestamp)'),
),
'description' => array(
'name' => t('Description'),
),
'thumbnail' => array(
'name' => t('Thumbnail'),
'description' => t('URL of the thumbnail of the video.'),
),
'category' => array(
'name' => t('Category'),
),
'tags' => array(
'name' => t('Tags'),
'description' => t('This can be imported directly with Taxonomy "tags" vocabularies.'),
),
'watch_page' => array(
'name' => t('Watch page'),
'description' => t('The URL of the video.'),
),
'url' => array(
'name' => t('Video URL'),
'description' => t('The URL of the video.'),
),
'duration' => array(
'name' => t('Duration (Formatted)'),
'description' => t('Duration of the video in HH:MM:SS format.'),
),
'duration_raw' => array(
'name' => t('Duration (Seconds)'),
'description' => t('Duration of the video in number of seconds.'),
),
'fav_count' => array(
'name' => t('Favorite count'),
),
'view_count' => array(
'name' => t('View count'),
),
'rating' => array(
'name' => t('Rating'),
),
);
}