Revision 215
- Date:
- 2012/05/22 12:19:10
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/lib/Contenido/Parser/RSS.pm
696 696 } else { 697 697 $item{$elem_name} = $elem->{$elem_name}; 698 698 } 699 if ( $elem->{$elem_name}{type} =~ /^image/ ) { 699 if ( exists $elem->{$elem_name}{type} && $elem->{$elem_name}{type} =~ /^image/ ) { 700 700 my $enclosure = { url => $elem->{$elem_name}{href} || $elem->{$elem_name}{url}, type => $elem->{$elem_name}{type} }; 701 701 if ( exists $item{enclosure} && ref $item{enclosure} eq 'ARRAY' ) { 702 702 push @{ $item{enclosure} }, $enclosure; … … 707 707 $item{enclosure} = $enclosure; 708 708 } 709 709 } 710 if ( $elem->{$elem_name}{type} =~ /^video/ ) { 710 if ( exists $elem->{$elem_name}{type} && $elem->{$elem_name}{type} =~ /^video/ ) { 711 711 my $enclosure = { url => $elem->{$elem_name}{href} || $elem->{$elem_name}{url}, type => $elem->{$elem_name}{type} }; 712 712 if ( exists $item{enclosure} && ref $item{enclosure} eq 'ARRAY' ) { 713 713 push @{ $item{enclosure} }, $enclosure;