Skip to content

Show HTML-only OPML outlines in Blogroll preview#19

Draft
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-opml-preview-html-links
Draft

Show HTML-only OPML outlines in Blogroll preview#19
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-opml-preview-html-links

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 22, 2026

Some OPML sources (e.g. blogroll-style files) contain outlines with htmlUrl/url but no xmlUrl. Those entries were silently dropped in preview, so users could not see a large part of the OPML content.

  • OPML parsing update

    • Extracted outline parsing into www/js/helpers/opml.js.
    • parseOPMLOutlines now keeps:
      • feed entries (xmlUrl → previewable url)
      • HTML-only entries (htmlUrl/urlhtmlUrl)
    • Preserves existing recursive folder parsing behavior.
  • Blogroll preview rendering

    • Updated www/js/subscribers/004_Blogrolls.js template logic:
      • url entries continue rendering as clickable .feed preview items.
      • htmlUrl entries now render as external links instead of being omitted.
  • Focused coverage

    • Added tests/Blogrolls.test.js to assert:
      • html-only outline entries are retained
      • xmlUrl entries remain mapped as feed URLs
const xmlUrl = outline.getAttribute('xmlUrl');
const htmlUrl = outline.getAttribute('htmlUrl') || outline.getAttribute('url');

if (xmlUrl) {
  result.children.push({ text: label, url: xmlUrl });
} else if (htmlUrl) {
  result.children.push({ text: label, htmlUrl });
}

OPML preview with HTML-only link visible

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • blogscroll.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
    • Triggering command: /usr/bin/curl curl -L --max-time 20 -sS REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 3 commits April 22, 2026 23:00
Copilot AI changed the title [WIP] Fix OPML preview to display only HTML links Show HTML-only OPML outlines in Blogroll preview Apr 22, 2026
Copilot AI requested a review from lwindolf April 22, 2026 23:04
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.

OPML with only HTML links does not show those in preview

2 participants