Add expire support (#44)

This commit is contained in:
T.v.Dein
2024-01-19 14:41:47 +01:00
committed by GitHub
parent 96fb142423
commit 634d9a4140
3 changed files with 20 additions and 3 deletions

View File

@@ -117,6 +117,8 @@ func ScrapeAd(fetch *Fetcher, uri string) error {
return errors.New("could not extract ad data from page, got empty struct")
}
ad.CalculateExpire()
slog.Debug("extracted ad listing", "ad", ad)
// write listing