Version 20210330.02. Skip images that are only in JSON and not on web page.

pull/10/head
arkiver 3 years ago
parent 07ed16c44b
commit adc7f9c6fb

@ -60,7 +60,7 @@ if not WGET_AT:
#
# Update this each time you make a non-cosmetic change.
# It will be added to the WARC files and reported to the tracker.
VERSION = '20210330.01'
VERSION = '20210330.02'
TRACKER_ID = 'reddit'
TRACKER_HOST = 'legacy-api.arpa.li'
MULTI_ITEM_SIZE = 20

@ -178,6 +178,12 @@ allowed = function(url, parenturl)
or string.match(url, "^https?://[^%.]*preview%.redd%.it/.")
)
and not string.match(item_type, "comment") then
if parenturl
and string.match(parenturl, "^https?://www%.reddit.com/api/info%.json%?id=t")
and not string.match(url, "^https?://v%.redd%.it/")
and not string.find(url, "thumbs.") then
return false
end
return true
end

Loading…
Cancel
Save