Skip to content

Commit

Permalink
added timeout for urlopen function (SOCKET_TIMEOUT in ini);
Browse files Browse the repository at this point in the history
try to handle upload/replace file exceptions (MAX_UPLOAD_ATTEMPTS in ini);
in grabNewFiles correct handle extension for linux hiden files;
improve tags precleaning before send to upload api;
remove redundant function addTagsToUploadedPhotos, addTagToPhoto;
added some statistic in the end of process.
  • Loading branch information
grinderz committed Aug 30, 2016
1 parent 91457d4 commit d7f1279
Show file tree
Hide file tree
Showing 2 changed files with 479 additions and 359 deletions.
10 changes: 10 additions & 0 deletions uploadr.ini
Expand Up @@ -90,3 +90,13 @@ MANAGE_CHANGES = True
# True: 2014/05/05
################################################################################
FULL_SET_NAME = False

################################################################################
# Timeout for urlopen function
################################################################################
SOCKET_TIMEOUT = 60

################################################################################
# Counter for uploading, replacing attempts
################################################################################
MAX_UPLOAD_ATTEMPTS = 10

0 comments on commit d7f1279

Please sign in to comment.