Newsboat: When downloading a podcast from TT-RSS, newsboat takes the first enclosure rather than the podcast

Created on 15 May 2020  路  3Comments  路  Source: newsboat/newsboat

Newsboat version: newsboat 2.19.0

When enqueueing a podcast from a tinytinyrss server that contains multiple media enclosures (such as a podcast logo), newsboat will enqueue and download the first media enclosure in the feed, instead of the podcast.

bug good first issue

All 3 comments

Thank you for the report! I did not reproduce this, but looking at the code, it's easy to see that you're right.

I believe this is a good first issue for a Newsboat contributor:

  1. the above link shows which part needs modification;
  2. our "native" RSS and Atom parsers don't exhibit this bug because they choose the last enclosure that looks like a podcast. You can look at rss/atomparser.cpp for inspiration. Just port the code from there to TtrssApi;
  3. test that it actually works (@nihilazo, could you provide a URL of the feed where the first enclosure is an image, and the second is a podcast?).

an example would be the feed for the no such thing as a fish podcast: https://audioboom.com/channels/2399216.rss

I think i've fixed this issue.

newsboat-ttrss-after

Was this page helpful?
0 / 5 - 0 ratings