Commit b5778f9
committed
fix(lubimyczytac): restore search results and detail-page metadata
LubimyCzytac.pl restructured its markup, which broke the provider in
four places:
- Search results moved from `authorAllBooks__single` to `book-card--l`,
so `parse_search_results()` matched nothing and every query returned
zero results.
- The publisher moved out of the `<dl>` definition list into a
`span.book__txt` element, so `publisher` was always None.
- The description moved from `div.collapse-content` to
`#book-description`, so `_parse_description()` silently fell back to
the truncated `og:description` meta tag.
- The book page now emits an `Organization` ld+json block before the
`Book` one, and `_parse_from_summary()` only read the first block, so
`publishedDate` was always None.
Verified against live HTML for 9 search queries and 14 book pages:
queries returning matches 0/9 -> 9/9, publisher 0/14 -> 14/14,
publishedDate 0/14 -> 14/14, description 0/14 -> 14/14 (3.1x more text
than the meta-tag fallback across 18 end-to-end results).1 parent 43718d8 commit b5778f9
1 file changed
Lines changed: 25 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
| 297 | + | |
| 298 | + | |
291 | 299 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
296 | 311 | | |
297 | 312 | | |
298 | 313 | | |
| |||
0 commit comments