lib/feedjira/podcast/item/apple.rb in feedjira-podcast-0.9.10 vs lib/feedjira/podcast/item/apple.rb in feedjira-podcast-0.9.11
- old
+ new
@@ -59,10 +59,10 @@
base.element :"itunes:author", as: :itunes_author
base.element :"itunes:block", as: :_itunes_block
base.element :"itunes:image", as: :itunes_image_href, value: :href do |href|
- Addressable::URI.parse(href)
+ Addressable::URI.parse(href.strip)
end
base.element :"itunes:duration", as: :itunes_duration do |d|
["0:0:0:#{d}".split(":")[-3, 3].map(&:to_i)].inject(0) do |_m, i|
(i[0] * 3600) + (i[1] * 60) + i[2]