To test the rss in a podcast app:
https://podcasts.puhcho.me/npub1u4x0m5grq47ahu42tmdtjq9pak7gsgz68uw2lagu44stn6rt2v7qnzgmhv(this will run temporary and can be plugged in most podcast apps).
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 turns any pub to podcaster and will be played in the podcast apps if enclosure url is added like this:
```
console.log(event);
const urlPattern = /(https?:\/\/[^\s"']+\.(mp3|mp4|wav|ogg|m4a|flac|aac|m3u8|webm|mov))/i;
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-09-20 20:50:35Event JSON
{
"id": "a61b84cefd8dc9e8cc75c12d4146ddb7123213179287604a6421dea3f1a67276",
"pubkey": "e54cfdd103057ddbf2aa5edab900a1edbc88205a3f1caff51cad60b9e86b533c",
"created_at": 1726865435,
"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: \\n\\nhttps://podcasts.puhcho.me/npub1u4x0m5grq47ahu42tmdtjq9pak7gsgz68uw2lagu44stn6rt2v7qnzgmhv\\n(this will run temporary and can be plugged in most podcast apps).\\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 turns any pub to podcaster and 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\\\"']+\\\\.(mp3|mp4|wav|ogg|m4a|flac|aac|m3u8|webm|mov))/i;\\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": "eb28382aa5a7448270bc174bfc7f6000f9520680207eb12cef1825e98f237684426e0aee6cf2c44b7ee046073c031c4a0550d690a110bd8648f666607c93d6f8"
}