Add MeteoAlarm OPML generator

This commit is contained in:
~lucidiot 2023-11-18 16:38:14 +01:00
parent 99803ac2e0
commit b10c298564
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<opml version="2.0">
<head>
<title>MeteoAlarm feeds</title>
<dateModified>{format-dateTime(adjust-dateTime-to-timezone(current-dateTime(), xs:dayTimeDuration("PT0S")), "[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] GMT")}</dateModified>
<ownerName>lucidiot</ownerName>
<ownerEmail>lucidiot@envs.net</ownerEmail>
<ownerId>https://tilde.town/~lucidiot/contact.html</ownerId>
<docs>http://dev.opml.org/spec2.html</docs>
</head>
<body>
{
doc('https://feeds.meteoalarm.org/')//h2
! <outline text="{text()}">
{
./following-sibling::ul[1]/li/a/@href
! <outline
type="rss"
xmlUrl="{.}"
text="{if (contains(., 'atom')) then 'Atom + CAP' else 'RSS'}"
version="{if (contains(., 'atom')) then 'ATOM' else 'RSS'}"
/>
}
</outline>
}
</body>
</opml>