Closed roeierez closed 3 years ago
Closing this PR as we don't need the tag support at the search level for now, we need that when loading the feed.
OK thanks @roeierez. Looking at the spec, the value tag is part of phase 3. How soon do you think you'll need to read the value tag in the rss?
OK thanks @roeierez. Looking at the spec, the value tag is part of phase 3. How soon do you think you'll need to read the value tag in the rss?
Hi @amugofjava Actually we need it right away (It is the only tag we actually need) and the problem is that it is only well supported via the json API. We can discuss on telegram on how to proceed.
This PR adds the "value" tag to podcast item search result as specified by podcast index 2.0 schema (https://github.com/Podcastindex-org/podcast-namespace). The value tag defines the payment model of the item and supports lightning payments. In addition I have modified the
_buildSearchUrl
method of PodcastIndexSearch tobuildSearchUrl
so it can be reused by only changing the url and demonstrated a way to use a custom search provider via a unit test. The option of custom search provider is useful when the caller wants to use different API endpoints to search using podcast index and my intention is to use such custom provider when using anytime podcast app as a dependency inside Breez while I am avoiding significant changes to the low level library.