Le 10/10/2021 à 21:38, Amirouche Boubekki a écrit :

That is great ! I did not look at linked page yet. What are hints ?

Hi,

"Hints" is a generic system to allow the scraper to pass ... hints to the creator when we create a zim file. Hints are information for the creator only. They may change the way the entries are stored
but they are not stored in the zim file and readers cannot access them.

For now we support only two hints:
- COMPRESS : Force the creator to compress or not the content (if not given, use default heuristics based on mimetype) - FRONT_ARTICLE : Tell the item/redirection is a entry intended to be displayed to the user as a article (to oppose to resources as image/css/js)
  Random articles or suggestion use front articles only (when possible).

COMPRESS is not really important but FRONT_ARTICLE is somehow mandatory as we have no other way to differentiate articles from resources
(as we don't have namespace now)


--
Matthieu Gautier
Freelance developer
Membre du collectif d'indépendants Kymeria.
Membre de la coopérative d'activités Elycoop.
Mail : [email protected]
_______________________________________________
Offline-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to