milanmdev / bsky.rss

A configurable RSS poster for Bluesky
MIT License
32 stars 8 forks source link

[Feature request] Language setting #11

Closed rmdes closed 1 year ago

rmdes commented 1 year ago

So Bluesky supports to set the language of the posts and users can choose to see content in X or Y language as they see fit, so I was thinking, why not add the ability to set the language associated with each RSS feed so that the bot would be able to skeet in different languages and users would only see the ones they agree to see client side.

Could language be set via the API ?

milanmdev commented 1 year ago

Setting a language via the API seems to be possible, so I'll work on implementing this. Great idea!

rmdes commented 1 year ago

I have a doubt, should I rebuild the docker image to be able to use these last merges ?

milanmdev commented 1 year ago

You need to pull the latest image and then in your config file, let the languages variable. image

rmdes commented 1 year ago

OK that's what I have done, I'm not sure yet how to test this on bluesky side, like, I guess users should only see the languages they choose to see even if an account they follow posts in multiple languages, I'll do some testing from mobile and see how it goes !

Thanks a lot for this feature !!

milanmdev commented 1 year ago

No problem! For me, it added something like this: image

milanmdev commented 1 year ago

After seeing your bot, do you want something where each post has a different language set? Right now, I just have it so that all the languages provided are set for all the posts, as I don't have a clear way to set individual languages for individual posts (where I pull the language information off of the RSS feed).

rmdes commented 1 year ago

Hmm my setup is more like, I have 3 baskets that contains dozens of feeds, one in english, one in french, one in spanish (that's EUwatch) and for Polbegov I have 2 baskets, one in french, one in dutch, and I classify the feed based on their language directly on my RSS aggregator, so when I spin bsky.rss I just have to set the language once and for me it's perfectly convenient this way

milanmdev commented 1 year ago

Oh I see, so as of right now you're using 3 different instances logged into the same account?

rmdes commented 1 year ago

Correct, and each have their language set in the config.json file