Folo icon indicating copy to clipboard operation
Folo copied to clipboard

Cannot load custom title when importing from OPML file

Open const7 opened this issue 1 year ago • 2 comments

Describe the bug

I'm not sure if this is a feature or a bug.

I exported an OPML file directly from FreshRSS and attempted to import it into follow. However, follow extracts the title from the RSS URL rather than using the pre-defined titles in the OPML file (this happens both in the Web and Windows app). image image

I'm happy to help fix it, but I'm not familiar with the frameworks being used, so I couldn't locate where the OPML is actually being parsed.

Feed Info

Reproducible OPML file above:

<?xml version="1.0" encoding="UTF-8"?>
<opml xmlns:frss="https://freshrss.org/opml" version="2.0">
  <head>
    <title>FreshRSS</title>
    <dateCreated>Tue, 17 Sep 2024 02:03:27 +0800</dateCreated>
  </head>
  <body>
    <outline text="Google Scholar">
      <outline text="Joseph Heffner" type="rss" xmlUrl="https://rsshub.chenkun.me/google/citations/vtymOtoAAAAJ&amp;sortby=pubdate" htmlUrl="https://scholar.google.com/citations?user=vtymOtoAAAAJ&amp;sortby=pubdate" description="Google Scholar Citation Monitor: Joseph Heffner; Profile: Yale University; HomePage: https://jpheffne.github.io/ - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)"/>
      <outline text="Yanchao Bi" type="rss" xmlUrl="https://rsshub.chenkun.me/google/citations/bLz-hogAAAAJ&amp;sortby=pubdate" htmlUrl="https://scholar.google.com/citations?user=bLz-hogAAAAJ&amp;sortby=pubdate" description="Google Scholar Citation Monitor: Yanchao Bi; Profile: Professor, IDG/McGovern Inst for Brain Research, State Key Lab of Cogn Neurosci &amp; Learning, BNU; HomePage: http://bilab.bnu.edu.cn/ - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)"/>
    </outline>
    <outline text="Journal">
      <outline text="Annual Review of Psychology" type="rss" xmlUrl="https://www.annualreviews.org/rss/content/journals/psych/latestarticles?fmt=rss" htmlUrl="https://www.annualreviews.org/journal/psych" description="Please follow the links to view the content."/>
      <outline text="Emotion" type="rss" xmlUrl="https://psycnet.apa.org/journals/emo.rss" htmlUrl="https://psycnet.apa.org/PsycARTICLES/journal/emo" description="Emotion publishes significant contributions to the study of emotion from a wide range of theoretical traditions and research domains. Emotion includes articles that advance knowledge and theory about all aspects of emotional processes, including reports of substantial empirical studies, scholarly reviews, and major theoretical articles."/>
      <outline text="Current Biology" type="rss" xmlUrl="https://rss.sciencedirect.com/publication/science/09609822" htmlUrl="https://www.sciencedirect.com/journal/current-biology" description="ScienceDirect RSS"/>
      <outline text="Journal of Neuroscience" type="rss" xmlUrl="https://www.jneurosci.org/rss/Behavioral_Cognitive.xml" htmlUrl="http://www.jneurosci.org/" description="Journal of Neuroscience RSS feed -- recent Behavioral/Cognitive articles"/>
      <outline text="Neuron" type="rss" xmlUrl="https://www.cell.com/neuron/current.rss" htmlUrl="https://www.cell.com/neuron/current.rss" description="Neuron RSS feed."/>
    </outline>
    <outline text="News">
      <outline text="FreshRSS releases" type="rss" xmlUrl="https://github.com/FreshRSS/FreshRSS/releases.atom" htmlUrl="https://github.com/FreshRSS/FreshRSS/" description="FreshRSS releases @ GitHub"/>
    </outline>
  </body>
</opml>

Reproduction Video

No response

App Type

Web

Version

v0.0.1-alpha.13

Operating System

Windows 11

Browser Info

No response

Validations

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.

Contributions

  • [X] I am willing to submit a PR to fix this issue
  • [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

const7 avatar Sep 17 '24 02:09 const7

@hyoban Follow up this issue plz

Innei avatar Sep 18 '24 13:09 Innei