Version 20230614.03. Better check for level error page on svc URL.

pull/17/head
arkiver 11 months ago
parent be6e32cba5
commit bea971f375

@ -59,7 +59,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 = '20230614.02'
VERSION = '20230614.03'
TRACKER_ID = 'reddit'
TRACKER_HOST = 'legacy-api.arpa.li'
MULTI_ITEM_SIZE = 40

@ -716,7 +716,7 @@ wget.callbacks.write_to_warc = function(url, http_stat)
local is_comments_comment = string.match(url["url"], "^https?://www%.reddit%.com/r/[^/]+/comments/[^/]+/comment/[^/]+/")
if (
string.match(url["url"], "^https?://[^/]+/svc/")
and string.match(html, 'level%s*=')
and string.match(html, 'level%s*=%s*"')
) or (
string.match(url["url"], "^https?://old%.reddit%.com/r/")
and not string.match(html, 'class="live%-timestamp"')

Loading…
Cancel
Save