- If there is an updated file, the old directory will be moved to `name_timestamp` where `timestamp` is the last upload time of the old files. The code will then copy unchanged files across and download any new ones.
## Changelog
+* v0.8.7
+ - Always, Always generate a valid time stamp.
* v0.8.6
- Handle thingiverse returning no files for a thing gracefully.
* v0.8.5
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.firefox.options import Options
import atexit
+import py7zr
URL_BASE = "https://www.thingiverse.com"
URL_COLLECTION = URL_BASE + "/ajax/thingcollection/list_collected_things"
MAX_PATH_LENGTH = 250
-VERSION = "0.8.6"
+VERSION = "0.8.7"
#BROWSER = webdriver.PhantomJS('./phantomjs')
# add the .split(' ')[0] to remove the timestamp from the old style timestamps
last_bits = [int(x) for x in timestamp_handle.readlines()[0].split(' ')[0].split("-")]
logging.warning(last_bits)
+ if last_bits[0] == 0:
+ last_bits[0] = 1
+ if last_bits[1] == 0:
+ last_bits[1] = 1
+ if last_bits[2] == 0:
+ last_bits[2] = 1980
try:
self.last_time = datetime.datetime(last_bits[0], last_bits[1], last_bits[2])
except ValueError: