Commit Graph

173 Commits

Author SHA1 Message Date
a871cfbb11 fixed missing reset of the uploadRequired flag 2019-03-20 00:24:09 +01:00
8068d829fe Refactored piwigo context to a object oriented implementation
Optimized http calls to reuse more code and DRY
Interface for PiwigoContext WIP
Naming WIP
2019-03-20 00:17:58 +01:00
f3f864ec49 Removed old empty method
added synchronizePiwigoMetadata implementations to update local metadata from piwigo
2019-03-19 23:08:28 +01:00
7bf14e5ca3 Added SavePiwigoIdAndUpdateUploadFlag 2019-03-19 23:07:55 +01:00
58b5b79b34 renamed ImageUploadRequired to ImageExistOnPiwigo
Added ImageCheckFile to check the piwigo file state
2019-03-19 23:07:39 +01:00
00404788cb Renamed methods as GO has no Getter or Setter 2019-03-19 21:21:45 +01:00
5166b0c6b8 started synchronization of piwigo ids and upload required 2019-03-17 23:57:28 +01:00
20eeba2615 made cookiejar internal 2019-03-17 23:48:44 +01:00
066f8f5f95 extended datastore to get the images that should be uploaded 2019-03-17 23:36:40 +01:00
798b74d071 Implemented synchronizeLocalImageMetadata to build the local image database 2019-03-17 23:11:56 +01:00
2333eccd0e added column UploadRequired to the image metadata 2019-03-17 22:59:18 +01:00
02f59c47f9 made checksum calculator exportable to use it in the app package 2019-03-17 22:58:49 +01:00
10ffa029f8 started rethinking of the image upload process 2019-03-16 00:11:57 +01:00
faa7a33f8f save dataStore context field as reference type 2019-03-15 23:54:22 +01:00
b917511e95 Added first datastore implementation with tests 2019-03-15 23:53:47 +01:00
9ca31bcb2b started adding sqlite code 2019-03-15 00:35:49 +01:00
54e59a3f98 updated gitignore to ignore local database 2019-03-14 23:50:05 +01:00
5bf0b0b4e1 added first unit test 2019-03-13 00:14:19 +01:00
cd226af651 Fixed go test findings on method usage 2019-03-12 23:52:04 +01:00
2cc33641a7 moved filesystemnode to the filesystem scanner 2019-03-12 23:47:19 +01:00
105c89538e moved imagenode to the imagelist file where it gets created 2019-03-12 23:46:35 +01:00
5a4c133f27 moved app types to appContext.go and added some methods
moved piwigo login from app.go to piwigoContext.go
Updated visibility of some types
Added first elements of the local data store including configuration on startup and flag
yea yea... I know, the commit contains to many changes ;-)
2019-03-12 23:44:05 +01:00
eae6db1683 refactored piwigo context to a interface on most of the functions 2019-03-11 22:16:55 +01:00
6064e94858 moved piwigo authentication 2019-03-11 21:47:16 +01:00
a194e2f5ae merged piwigo category code 2019-03-11 21:45:46 +01:00
b089bf34ee merged all picture code in one go file as it is small and go works with different rules for handling code files than c# 2019-03-11 21:42:20 +01:00
6ff859b57c fixed executable name 2019-03-04 21:35:18 +01:00
96d4b70dac updated readme 2019-03-04 00:00:27 +01:00
3e7cc0fd2d renamed project to PiwigoDirectoryUploader 2019-03-03 23:44:13 +01:00
084b3a3e2b Made log level configurable
#7
2019-03-03 23:34:11 +01:00
48a89da9a6 ignore local build executable 2019-03-03 23:33:35 +01:00
951c8249dd removed duplicated log message 2019-03-03 23:21:46 +01:00
35a74989ed fixed methodname to make it internal 2019-03-03 23:21:38 +01:00
e1c1f9578a made local image preparations use channels and go routines to speed it up and use all cpu cores to calculate the md5 sums 2019-03-03 22:35:24 +01:00
cc778e5615 added sort to populate by category not by random file order 2019-03-02 00:32:15 +01:00
8659aba430 fixed log output of total file size 2019-03-02 00:25:24 +01:00
bfd90cf1b6 made upload of images work 2019-03-02 00:21:01 +01:00
515a3c6950 added category output 2019-03-01 21:51:37 +01:00
665f0e18e1 fixed missing directory handling 2019-03-01 21:51:30 +01:00
930d27bff7 fixed namespace and clone target 2019-03-01 21:36:16 +01:00
704a3da759 small http handling optimization 2019-03-01 00:26:15 +01:00
28f89c54d5 started upload file implementation 2019-03-01 00:14:52 +01:00
958631df5d filtering all except png and jpg 2019-02-28 22:30:58 +01:00
a4a6cce943 made finding missing files work 2019-02-27 23:26:18 +01:00
45db2fe79b made app context internal to the app parts 2019-02-27 22:13:23 +01:00
2808c85147 added md5 sums to the local file upload indexing 2019-02-27 22:11:47 +01:00
643729af1f started coding of image handling 2019-02-27 00:09:41 +01:00
5ea9fa2911 optimized handling if no category is missing 2019-02-26 22:55:45 +01:00
9e20d4ecc2 removed blocking error message 2019-02-26 22:51:42 +01:00
669bb18cf4 made category create work 2019-02-26 22:50:33 +01:00