Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: Update feeds via command #1327

Open
Spixmaster opened this issue Mar 14, 2024 · 12 comments
Open

[FR]: Update feeds via command #1327

Spixmaster opened this issue Mar 14, 2024 · 12 comments
Assignees
Labels
Status-Accepted I will eventually implement this. Type-Enhancement This is request for brand new feature.

Comments

@Spixmaster
Copy link

Brief description of the feature request

I would like to update my feeds with a command as I want to automate the updating with a script on a regular basis.

The reasoning behind this is that some feeds only show the last ten entries like WordPress and I do not want to miss feeds which unfortunately already happened to me. It is not possible to get these articles later once they are gone.

@Spixmaster Spixmaster added the Type-Enhancement This is request for brand new feature. label Mar 14, 2024
@martinrotter
Copy link
Owner

What you mean "with command" like console command? You must be much more specific, my friend.

@Spixmaster
Copy link
Author

Spixmaster commented Mar 14, 2024

@martinrotter Yes, I mean a console command like rssguard fetch, an option would be fine too. It is your choice.

A command would be the most efficient way to do so. Right now, the whole GUI needs to be started and automation is not possible.

@martinrotter
Copy link
Owner

Well, RSS Guard is GUI application and CLI automation is not really there.

BUT, that said. Once RSS Guard is configured, then with a bit of work it could be done that it starts and runs in headless mode. I will investigate the possibility.

@Spixmaster
Copy link
Author

Spixmaster commented Mar 14, 2024

A headless mode would not solve the issue from how I understand it. The GUI would still be running but not displayed. In that case the resource consumption would still be the same.

Invorking the GUI even in a headless mode would never finish hence automation would still not be possible.

Could not the function the fetches the new feeds that is invoked with the shortcut CTRL + SHIFT + u be called when that new command like rssguard fetch would be executed?

Maybe you can tell me the proper locations and I could give it a try myself. The best library for command line interfaces is https://github.com/CLIUtils/CLI11 in my opinion.

@martinrotter
Copy link
Owner

No, I plan/want to make headless mode fully working. No windows, no dialogs, no popups.

I had this in my head for some time, would work like this:

  1. You launch your RSS Guard normally with GUI and setup all your feeds and their updating intervals etc., then you quit RSS Guard.
  2. You launch now RSS Guard with "headless" process parameter switch and RSS Guard will run in non-GUI mode (it will not display main window, it will not show any popups etc.)

THis is not problem about parsing CLI arguments etc. that functionality is already in RSS Guard and working

@Spixmaster
Copy link
Author

Spixmaster commented Mar 14, 2024

Would the pure CLI have the functionality to just fetch the new feeds?

Is it this function,

void FeedDownloader::updateFeeds(const QList<Feed*>& feeds) {
? Would it be sufficient to call it with a command?

@martinrotter
Copy link
Owner

That depends, Either it will be the same executable file but will behave "headless" when proper switch is invoked and it will behave exactly the same as GUI version (so download feeds regularly per settings, etc.) but will not show any GUI at all.

OR

I can write brand new "CLI ONLY" executable file for this purpose only.

@martinrotter
Copy link
Owner

I would likely be "cleaner" to have separate "rssguard_cli.exe" for CLI-only application. It will use "librssguard.dll" library which contains all needed stuff and will call only needed functions.

@Spixmaster
Copy link
Author

I do not know whether that would contain the feature to updated the feeds, does it?

@Spixmaster
Copy link
Author

Spixmaster commented Mar 14, 2024

Do not you think that something like rssguard fetch or rssguard-cli fetch which updates all feeds would be useful?

@martinrotter
Copy link
Owner

I do not know whether that would contain the feature to updated the feeds, does it?

Of course it will contain the feature. If you have discord, please join rssguard discord channel and we can chat this.

https://discord.com/invite/7xbVMPPNqH

@Spixmaster
Copy link
Author

Spixmaster commented Mar 14, 2024

That is great. Thanks!

@martinrotter martinrotter added the Status-Accepted I will eventually implement this. label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status-Accepted I will eventually implement this. Type-Enhancement This is request for brand new feature.
Projects
None yet
Development

No branches or pull requests

2 participants