I've noticed that (most of) my adlists get the status
Status: Retrieval successful instead of
No changes detected when running
pihole -g, even when running it twice within a minute.
Looking at the code, I see that the ''Status' is based on HTTP response. The code even states that some servers don't provide the necessary header.
As pihole will save all downloaded lists locally, I request to additionally compare old local lists and (new) downloaded to decide if "Status" should be "changed" or "not changed".
This could be extended to locally saved adlist, which at the moment will never get "Status: no change detected".
This would allow to improve gravity's output by separating it into two lines for each adlist:
Status: Retrieval successful Status: (No) Changes detected
Furthermore this would reliably allow to determine if the adlist content has been change, even when the server don't provide the necessary HTTP response.
This is also a prerequisite for FR like