Skip to content

Fix DT layout change and stabilize HE publish dates - #472

Merged
rix1337 merged 3 commits into
mainfrom
dev
Oct 29, 2026
Merged

rix1337 merged 3 commits into
mainfrom
dev

Conversation

@rix1337

@rix1337 rix1337 commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Fixes #470

DT layout change

DT redesigned its post and listing pages, which broke DT in two ways:

  • Downloads: post pages moved the download body (div.full-story-body) out of <article>, so every DT grab failed with "Could not find download section". The handler now looks up that body anywhere on the page. Pages that still nest it inside <article> keep working.
  • Feed: listing titles became div.h1.dt-flexible-title, and the calendar date block was replaced by a dd.mm.yyyy hh:mm line. The feed found no titles and returned nothing. Titles now match by class, and dates fall back to the inline timestamp when the calendar block is missing. Search result pages still use the old markup and parse the same as before.

HE publish dates (from #471)

HE search results only show a relative age ("Posted 2 days ago"), so each search reported a different publishedDate for the same release. Sonarr's blocklist compares publish dates, so after a failed HE grab it grabbed the same release again on the next search. Search already fetches each HE post page, and that page carries an absolute datePublished timestamp. Results now use it and fall back to the relative age when it is missing.

No config or hostname changes.

Verification:

  • Live DT post pages: links extracted on 10/10 (0/10 before)
  • Live DT feed pages across all four categories: 36 releases (0 before). Four movie listings have no size and are skipped, same rule as before
  • Live DT search pages: output identical before and after
  • Live HE post pages: datePublished present on every sampled post and parsed to UTC
  • Unit tests cover new and legacy layouts for the DT download body and date, and HE's absolute date and its relative fallback
  • Full unit suite, ruff, pre-commit, privacy gate, trail check

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T09:17:53.495340Z f762afe New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rix1337 rix1337 changed the title Find DT download section outside article block Fix DT downloads and feed after layout change Oct 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rix1337 rix1337 changed the title Fix DT downloads and feed after layout change Fix DT layout change and stabilize HE publish dates Oct 29, 2026
@rix1337
rix1337 merged commit 020d6b7 into main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DT: every download fails with "Could not find download section"

1 participant