lib/feedjira/podcast/item/apple.rb in feedjira-podcast-0.9.5 vs lib/feedjira/podcast/item/apple.rb in feedjira-podcast-0.9.6
- old
+ new
@@ -32,10 +32,16 @@
base.element :"itunes:subtitle", as: :itunes_subtitle
base.element :"itunes:summary", as: :itunes_summary
+ # Legacy support
+
+ base.element :"itunes:keywords", as: :itunes_keywords do |keywords|
+ keywords.split(',').map(&:strip).select { |k| !k.empty? }
+ end
+
def itunes
@itunes ||= Struct.new(
:author,
:block?,
:image,
@@ -44,10 +50,11 @@
:clean?,
:closed_captioned?,
:order,
:subtitle,
:summary,
+ :keywords,
).new(
itunes_author,
itunes_block,
itunes_image,
itunes_duration,
@@ -55,9 +62,10 @@
itunes_clean,
itunes_is_closed_captioned,
itunes_order,
itunes_subtitle,
itunes_summary,
+ itunes_keywords,
)
end
private