Files
ttrss-plugin-af-fulltext/site_config/custom/commitstrip.com.txt
Michal 8a89653565 rules: commitstrip matches alignnone posts too
The community rule pins the class to 'aligncenter size-full wp-image-'. Posts
vary between aligncenter and alignnone, so it matched some articles and fell
through to Readability on the rest -- which on a comic means the strip vanishes
and the article still looks plausible.

Found by the stale-rule diagnostic against live data: 8 stored articles carried
"STALE" while a hand-tested article of the other alignment extracted fine.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011sSJdftQx5bW5HZHgUKF3i
2026-08-25 11:42:35 +01:00

12 lines
571 B
Plaintext

# The community rule pins the class to 'aligncenter size-full wp-image-', but
# posts vary between aligncenter and alignnone, so it matches on some articles
# and silently falls through to Readability on others -- which on a comic means
# the strip disappears. Match the wp-image- marker instead, which every uploaded
# strip carries regardless of alignment.
body: //img[contains(@class, 'wp-image-')]
autodetect_on_failure: no
test_url: https://www.commitstrip.com/2022/02/22/security-questionnaire/
test_url: https://www.commitstrip.com/2022/12/09/a-whole-new-world/