varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.17k stars 140 forks source link

Generic RSS feed filtered for images as image source (support Fediverse accounts eg Mastodon, Pixelfed etc) #540

Open Bugsbane opened 2 years ago

Bugsbane commented 2 years ago

There are some really great RSS feeds of images, including ones automatically generated by accounts on the Fediverse (eg Mastodon/Pixelfed etc).

It would be great to be able to use them as an image source.

In most cases, RSS feeds are already available. They just need to be filtered to get a feed that only gives the images.

For example, Mastodon provides an RSS feed at: https://instancedomain.tld/@username.rss All the images are in an enclosure tag with an extension of jpg|png|webp.

Pixelfed provides an atom feed at: https://instanceurl.tld/users/username.atom Images are all in tags with the following format:

What about if users could put in a generic RSS/atom feed and it basically downloaded any image url in the feed ending with a jpg|png|webp extension and used it as a wallpaper, assuming the downloaded size was a minimum number of pixels wide/high?

This would be a super flexible input that would let people use RSS feeds from all over the internet, including Fediverse accounts...

If you wanted to take it a step further without much extra work, you could actually have Mastodon and Pixelfed etc as separate sources in the add dropdown, where people could just paste in the URL of the profile and the formulas above were used to create the generic RSS/ATOM feed without users needing to know it.

Thanks for your consideration!

mohammadrafigh commented 2 days ago

I think at least a support for Pixelfed should be added.