e621dl
e621dl copied to clipboard
Use date instead of days in config?
Hello, This might be a stupid question since my Python knowledge is very limited, but is there any way to change the way the config file works so that instead of specifying a number of days in the past to check, you specify a date to download from when you first add a section, and upon execution of the script the current date is written to the date slots of every section it updates? Or, if the e621 API only takes a number of days, to have the script take the date value in the config and subtract it from the current date to determine how many days in the past to check? Thanks!
It's not that easy to change in code, but there is a workaround. Code itself transforms days to a specific date, in this notation:
date:>={earliest_date}
examples:
date:>=2012-04-27
date:>=april/27/2012
See cheatsheets for details.
So, the easiest way is to set days
to really big number and use date:>=YYYY-MM-DD
for your actual date as the first tag in a search.