Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rss-bot: Added a hash to the end of the feed_file#845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
anon1a7d wants to merge1 commit intozulip:main
base:main
Choose a base branch
Loading
fromanon1a7d:feature/multi-feed_support

Conversation

anon1a7d
Copy link

This allows for more than one feed per domain name (netloc). Previously, only a single feed could be associated with a domain name as the feed_file kept in the cache (data-dir) was simply the domain name (netloc). Using shake128, added an 8 digit hash (4 bytes in hex) of the full URL to the end of the feed_file name.

Now can supporthttps://example.com/site_one/feed.rss andhttps://example.com/site_two/feed.rss, etc.

The files in the data-dir for these two URLs will be as follows.

example.com-7778e2bdexample.com-52cfce4c

How did you test this PR?

Ran the modified code manually from a tmp environment (including a unique data-dir). Confirmed cached feed_files were as expected. Messages successfully sent to test stream under proper topics.

This allows for more than one feed per domain name (netloc).
@anon1a7danon1a7d changed the titleAdded a hash to the end of the feed_filerss-bot: Added a hash to the end of the feed_fileDec 19, 2024
@alya
Copy link
Contributor

alya commentedJan 7, 2025

Is there an issue this PR is solving? Please link it if so.

@anon1a7d
Copy link
Author

Is there an issue this PR is solving? Please link it if so.

There is not. It's something I noticed when I tried to use rss-bot to pull in two different feeds from a single domain.

@timabbott
Copy link
Member

@Niloth-p can you review this?

Niloth-p reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@anon1a7d@alya@timabbott@zulipbot

[8]ページ先頭

©2009-2025 Movatter.jp