forked from liamwhite/Derpibooru-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverify_downloads.py
34 lines (30 loc) · 981 Bytes
/
verify_downloads.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: new
#
# Created: 25/06/2014
# Copyright: (c) new 2014
# Licence: <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python
from derpibooru_dl import *
def main():
# Load settings
settings = config_handler(os.path.join("config","derpibooru_dl_config.cfg"))
verify_folder(settings, settings.output_folder)
if __name__ == '__main__':
# Setup logging
setup_logging(os.path.join("debug","derpibooru_verify_log.txt"))
try:
#cj = cookielib.LWPCookieJar()
#setup_browser()
main()
except Exception, err:
# Log exceptions
logging.critical("Unhandled exception!")
logging.critical(str( type(err) ) )
logging.exception(err)
logging.info( "Program finished.")
#raw_input("Press return to close")