Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement strftime-like formatting in fax URLs
This can be used to download faxes where the date of the fax is encoded into the URL (like surfacewinds_24hr_20170731_213000.gif). All the standard strftime special sequences are supported, and the <Map> XML tag can contain the DateOffset attribute in order to specify an offset (in days) to be added/substracted to the current date. For example: <Server Name="test" Url="http://www.test.net/"> <Region Name="test"> <Map Url="%Y%m%d.html" Contents="today" Area="1" /> <Map Url="%Y%m%d.html" DateOffset="-1" Contents="yesterday" Area="1" /> <Map Url="%Y%m%d.html" DateOffset="+1" Contents="tomorrow" Area="1" /> <Area Name="1" lat1="40N" lat2="70N" lon1="50W" lon2="50E" /> </Region> </Server>
- Loading branch information