Continuous Import importing too often

7 vues
Accéder directement au premier message non lu

Martin McCallion

non lue,
8 juin 2021, 06:13:0108/06/2021
à nikola-discuss

Hi all,

I've configured the continuous_import plugin to pull from my Letterboxd feed. It runs on my server twice a day, and it's been working quite nicely. But I've just realised that it pulls everything in the feed every time.

So if I import an entry, make some tweaks on my imported version, and publish those, the next time the plugin runs, my changes get overwritten.

Is there a way to make the plugin only import feed entries that it hasn't already imported?

Cheers,

Martin

--
Martin McCallion
https://devilgate.org/

Roberto Alsina

non lue,
8 juin 2021, 06:19:4608/06/2021
à Nikola—Discuss
That is pretty much how it's intended to work, since it considers the feed to be always right, so it overwrites local modifications.

Making it not do that is a very simple code modification if you feel comfortable with Python. If you don't I can make it configurable.

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/C78C5E66-7B5B-4372-9814-7BA53B529BE7%40devilgate.org.

Martin McCallion

non lue,
8 juin 2021, 08:41:0508/06/2021
à Nikola—Discuss

I'm comfortable enough with Python, thanks. I've implemented a change using the start_at value, which was referred to but not really used. I've added support for a special value of 'start_at': 'now' in conf.py, and ignored any posts that are earlier. Works OK for me.

Do you need me to create an issue before I raise a PR?

Cheers,

Martin

--
Martin McCallion
https://devilgate.org/

Roberto Alsina

non lue,
8 juin 2021, 08:51:1608/06/2021
à Nikola—Discuss
On Tue, Jun 8, 2021 at 9:41 AM Martin McCallion <mar...@devilgate.org> wrote:

I'm comfortable enough with Python, thanks. I've implemented a change using the start_at value, which was referred to but not really used. I've added support for a special value of 'start_at': 'now' in conf.py, and ignored any posts that are earlier. Works OK for me.

Do you need me to create an issue before I raise a PR?


Nah, just raise it. Thanks for fixing this! I thought I was the only one using it :-)
 
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message