To test the rss in a podcast app:
https://podcasts.puhcho.me/npub1u4x0m5grq47ahu42tmdtjq9pak7gsgz68uw2lagu44stn6rt2v7qnzgmhv(this will run temporary).
In general self-host
https://github.com/SnowCait/nostr-rss and it can use nostter client or you can change the code to nostrudel, nostr band, coracle etc to pull rss of notes.
If the notes have a link in content, that will be played in the podcast apps if enclosure url is added like this:
```
console.log(event);
const urlPattern = /(https?:\/\/[^\s]+)/;
const urlMatch = event.content.match(urlPattern);
const enclosureUrl = urlMatch ? urlMatch[0] : null;
feed.item({
title: enclosureUrl,
description: event.content,
date: new Date(event.created_at * 1000),
url: `
https://nostter.app/${nip19.neventEncode({ id: event.id })}`,
enclosure: {
url: enclosureUrl,
type: 'audio/mpeg'
},
guid: `
https://nostter.app/${nip19.neventEncode({ id: event.id })}`
});
```
Published at
2024-08-30T00:53:22ZEvent JSON
{
"id": "571324a5951003b03da71253485c8f5945b6c561343eea81829065cef1897423",
"pubkey": "e54cfdd103057ddbf2aa5edab900a1edbc88205a3f1caff51cad60b9e86b533c",
"created_at": 1724979202,
"kind": 0,
"tags": [
[
"alt",
"User profile for Podcasts, why not"
]
],
"content": "{\"name\":\"Podcasts, why not\",\"display_name\":\"Podcasts, why not\",\"picture\":\"https://i.giphy.com/o1YuwnczQIcc3ZGlbq.webp\",\"banner\":\"https://static.vecteezy.com/system/resources/previews/011/000/296/non_2x/abstract-music-soundwave-banner-design-free-vector.jpg\",\"nip05\":\"podcasts@nostriches.club\",\"lud16\":\"podcasts@nostriches.club\",\"about\":\"To test the rss in a podcast app: \\nhttps://podcasts.puhcho.me/npub1u4x0m5grq47ahu42tmdtjq9pak7gsgz68uw2lagu44stn6rt2v7qnzgmhv\\n(this will run temporary).\\n\\nIn general self-host https://github.com/SnowCait/nostr-rss and it can use nostter client or you can change the code to nostrudel, nostr band, coracle etc to pull rss of notes.\\n\\nIf the notes have a link in content, that will be played in the podcast apps if enclosure url is added like this:\\n\\n```\\nconsole.log(event);\\n\\n const urlPattern = /(https?:\\\\/\\\\/[^\\\\s]+)/;\\n const urlMatch = event.content.match(urlPattern);\\n const enclosureUrl = urlMatch ? urlMatch[0] : null;\\n\\nfeed.item({\\n title: enclosureUrl,\\n description: event.content,\\n date: new Date(event.created_at * 1000),\\n url: `https://nostter.app/${nip19.neventEncode({ id: event.id })}`,\\n enclosure: {\\n url: enclosureUrl,\\n type: 'audio/mpeg'\\n },\\n guid: `https://nostter.app/${nip19.neventEncode({ id: event.id })}`\\n\\n });\\n```\"}",
"sig": "ca602a6326566d7da15b4353dd3290aa152b788c56e93d99692a3d595304c9c39e7e648f2824ff8d585314615ecdccc603af3e787ad512f2e2ec4579787805c9"
}