1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-03-02 10:27:37 +01:00

4 Commits

Author SHA1 Message Date
Ondřej Synáček
ae700330b9 fix: do not attempt to parse non-existent FB pages
When user enters something invalid (like number 123), it wuold still hit
FB webpage and return HTML. I do simple detection by looking at title
when it attempts to parse the DOM directly. When it contains "Content
Not Found", it is skipped.

Non-existent web pages cannot be parsed by using LDJSON parser and
looking at null data.
2020-12-26 21:03:03 +01:00
Ondřej Synáček
9da4c33ffd remove URL requirement for DOM parser 2020-07-19 08:14:34 +02:00
Ondřej Synáček
8458ae0b69 add minimum duration for DOM parser 2020-07-19 08:14:23 +02:00
Ondřej Synáček
094f0bf242 add unit tests for DOM parser 2020-07-15 20:54:24 +02:00