diff --git a/pod_feeder.pl b/pod_feeder.pl index 870ee59..cc54e8c 100755 --- a/pod_feeder.pl +++ b/pod_feeder.pl @@ -290,7 +290,7 @@ sub get_feed_items { # extract image link and hover text from content:encoded if it exists if( defined $item->{'content:encoded'} ){ - $item->{'content:encoded'} =~ /img .* src=\\?'(https?:\/\/[^']+)/ unless $item->{'content:encoded'} =~ /img .* src=\\?"(https?:\/\/[^"]+)/; + $item->{'content:encoded'} =~ /img .* ?src=\\?'(https?:\/\/[^']+)/ unless $item->{'content:encoded'} =~ /img .* ?src=\\?"(https?:\/\/[^"]+)/; if( defined $1 ){ $image = $1; @@ -301,7 +301,7 @@ sub get_feed_items { # extract image link and hover text from description if it exists if( not length $image and defined $item->{'description'} ){ - $item->{'description'} =~ /img .* src='(https?:\/\/[^']+)/ unless $item->{'description'} =~ /img .* src="(https?:\/\/[^"]+)/; + $item->{'description'} =~ /img .* ?src='(https?:\/\/[^']+)/ unless $item->{'description'} =~ /img .* ?src="(https?:\/\/[^"]+)/; if( defined $1 ){ $image = $1;