Closed Hexide closed 1 year ago
You have a validation error also https://validator.schema.org/
SubType (The type SubType is not a type defined by the recognised schema (e.g. schema.org).)
Yup, I completely understand that example I provided might not be valid according to spec. But it is a copy-paste example from a website (with data hidden) which I have no ability to change.
Expected outcome here would be that changedetection does it's best to gather data and not crash in situations where application/ld+json
is invalid.
yeah agreed, i made the "detector" a little more specific about string/dictionary and wrapped it in try/except, we see if tests pass
Describe the bug Some website fail to scrape with error
'list' object has no attribute 'lower'
Version v0.44.0 and v0.45.2
Steps to reproduce the behavior:
https://s3.hexide.com/public/2023/10/03/changedetectionio-testcase.html
'list' object has no attribute 'lower'
Additional context The issue appears to be caused due to
application/ld+json
object having list of string in@type
key.I was able to workaround the issue by patching: https://github.com/dgtlmoon/changedetection.io/blob/master/changedetectionio/html_tools.py#L195-L196
Replacing
to