|
|
@ -321,13 +321,15 @@ private module Parsers
|
|
|
|
content_container = item_contents["contents"]
|
|
|
|
content_container = item_contents["contents"]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
raw_contents = content_container["items"].as_a
|
|
|
|
raw_contents = content_container["items"]?.try &.as_a
|
|
|
|
|
|
|
|
if !raw_contents.nil?
|
|
|
|
raw_contents.each do |item|
|
|
|
|
raw_contents.each do |item|
|
|
|
|
result = extract_item(item)
|
|
|
|
result = extract_item(item)
|
|
|
|
if !result.nil?
|
|
|
|
if !result.nil?
|
|
|
|
contents << result
|
|
|
|
contents << result
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
Category.new({
|
|
|
|
Category.new({
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|