]> Sergey Matveev's repositories - feeder.git/commit
Use media:group/media:description if it exists
authorMatthieu Rakotojaona <m@rako.space>
Fri, 17 Feb 2023 17:13:06 +0000 (18:13 +0100)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 17 Feb 2023 18:30:04 +0000 (21:30 +0300)
commit577d47665d9ba1d4ae6e3247a4fd370863007f47
treedaed1fc3774b64d0399258296496a11632a244e4
parent28a5d8bcfec37ccdfea3ec910e7a5268fc2f7b51
Use media:group/media:description if it exists

Some feeds (typically rss feeds from invidious channels) have the
following structure for entries:

<item>
[...]
<content></content>
<description>A one line title</description>
<media:group>
[...]
<media:description>An actual text
that serves
as a description</media:description>
</media:group>
</item>

If it's there, and again longer than the other fields, use it
cmd/feed2mdir/main.go