validate that item images start with https
This commit is contained in:
@@ -176,6 +176,11 @@ def handle_multimedia(item, row, index, logger, lookup)
|
|||||||
|
|
||||||
parts.each do |part|
|
parts.each do |part|
|
||||||
mmd = MultiMediaDescription.new
|
mmd = MultiMediaDescription.new
|
||||||
|
|
||||||
|
if part != "" and not part.start_with? "https://"
|
||||||
|
raise "Invalid url for the image: #{part}"
|
||||||
|
end
|
||||||
|
|
||||||
mmd.url = part
|
mmd.url = part
|
||||||
item.multi_media_descriptions << mmd
|
item.multi_media_descriptions << mmd
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user