Closed (fixed)
Project:
Views Podcast
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2008 at 23:13 UTC
Updated:
25 Jun 2008 at 17:37 UTC
An important element for the item's description is having properly setup tags especially the itunes:summary. Although I setup a field for my description, it was only pulling in the description tag and not the itunes:summary tag. I made the folllowing adjustment to views_podcast_views_type.inc:
// Prepare the item description -- moved down below the itunes duration code block so that $privateExtra would be defined
if (isset($view_podcast->item_itunes_summary_override) &&
$view_podcast->item_itunes_summary_override != "") {
$description = $view_podcast->item_itunes_summary_override;
}
else if (isset($view_podcast->item_itunes_summary) &&
$view_podcast->item_itunes_summary != "") {
$tempa = str_replace(".", "_", $view_podcast->item_itunes_summary);
$tempb = eregi_replace(".*\.", "", $view_podcast->item_itunes_summary);
if (isset($node->$tempa)) {
$description = $node->$tempa; //Field exists in View data
$privateExtra[] = array(
'key' => 'itunes:summary',
'value' => $node->$tempa); //Field exists in View data
}
else if (isset($item->$tempb)) {
$description = $item->$tempb; //Field exists in Node data
$privateExtra[] = array(
'key' => 'itunes:summary',
'value' => $item->$tempb); //Field exists in Node data
}
else {
$description = '';
}
}
else {
$description = '';
}
Comments
Comment #1
designerbrent commentednsciacca,
Could you please provide this in the format of a patch file?
http://drupal.org/patch/create
Thanks...
Comment #2
greenskin commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.