EdJoPaTo / website-stalker

Track changes on websites via git
GNU Lesser General Public License v2.1
54 stars 6 forks source link

feat: support URLs with IP addresses #182

Closed EdJoPaTo closed 1 year ago

EdJoPaTo commented 1 year ago

Currently IP addresses are not supported as they don't have a domain. This PR changes that.

The filename is generated from the domain and then reversed (edjopato.de will have the filename de-edjopato) to sort by tld first. This is useless for IP addresses so the behaviour had to be different.

Also the notification template allows for singledomain and domains which is still supported but deprecated. Maybe #172 will drop notifications entirely and uses stdout so that change would be breaking too. Group them together and don't break it now.