46 Commits

Author SHA1 Message Date
Michael Wong
75e65901a9 Add --exclude-regex parameter to exclude directories on import #340 (#342)
The `--exclude-regex` parameter and `[Exclusions]` config section lets you pass in a regular expression to match against file source file paths and ignore.
2019-10-27 20:19:51 -07:00
Jaisen Mathai
12c17c9cac Add a plugin to upload photos to Google Photos (#319)
Fixes #315.

This PR aims to address the [recent changes](https://www.blog.google/products/photos/simplifying-google-photos-and-google-drive/) in Google Photos + Google Drive where syncing between the two is no longer supported.

It works by uploading photos as part of the import process to add a copy of every photo in your library to Google Photos. Google Drive is not required for this plugin to work.

This plugin lets you have all your photos in Google Photos without relying on Google Drive. You can use another cloud storage service like iCloud or Dropbox or no cloud storage at all.

- [x] Add tests for `after()` plugin methods.
- [x] Add support for storage/async support.
- [x] Include plugins into code coverage.
- [x] Sweep code and clean up and add comments.
2019-07-12 01:44:57 -07:00
Denis
283611a21e Implement unicode-safe print function as part of the log module (#298) 2019-02-12 21:23:52 -08:00
Jaisen Mathai
91bf181575 Include path separator and absolute path when checking if destination is a child of the source. Fixes gh-287 2018-12-03 22:32:35 -08:00
Matt Carey
6bde29095c Modify generate-db command help (#268) 2018-03-02 00:24:18 -08:00
Jaisen Mathai
bb2b0496f7 Add --debug option for command line to override value in constants.py. #153 (#217) 2017-05-11 23:43:16 -07:00
Jaisen Mathai
8082b739af Fix bug where code makes assumption of 2 levels of folders in the update command. #206 (#207) 2017-04-01 16:26:29 +05:30
Jaisen Mathai
18b5c1336e Add exit codes to all public commands #157 (#184)
* Add exit codes to update and import command
* Add tests for _import and _update exit codes
2017-01-21 20:52:32 -08:00
Jaisen Mathai
78880a6020 Add support for directories as argument to update command #178 (#182) 2017-01-07 21:49:00 -08:00
misterpipine
328aed6dfd Fix test which checks for unicode characters in file path strings #162 (#166)
fix issue encountered when importing from a UTF-8 encoded filesystem with non-breaking spaces.
2016-12-26 08:20:12 -08:00
misterpipine
5dc31cf46f Fix encoding issue with unicode characters in file and path #162
fix issue encountered when importing from a UTF-8 encoded filesystem with non-breaking spaces.
* skip test because failure case cannot be established
2016-12-22 01:53:08 -08:00
Jaisen Mathai
64773655d2 Convert FileSystem.get_all_files to be a generator function 2016-12-19 21:59:58 -08:00
Jaisen Mathai
7c3f323c44 Closes gh-159 Remove RESULT as global variable in elodie.py 2016-12-15 01:24:04 -08:00
Jaisen Mathai
9ad7358198 gh-156 Add verify command to check all files for bit rot 2016-12-13 22:27:12 -08:00
Jaisen Mathai
475fbeb6aa Add result output for generate-db command 2016-12-13 22:26:36 -08:00
Jaisen Mathai
bf24f9689a gh-154 Add command to regenerate the hash database 2016-12-13 00:08:08 -08:00
Jaisen Mathai
e555222e2f Change variable name from file_path to current_file 2016-11-14 12:15:48 -08:00
Jaisen Mathai
33cc0e17ca gh-145 Add stats output block at the end of an update or import command. 2016-11-10 20:59:40 -08:00
Jaisen Mathai
5d9155b673 Use logger in elodie.py 2016-11-09 20:37:57 -08:00
Jaisen Mathai
92c3818720 gh-145 Check if destination is in source and skip import 2016-11-07 23:39:18 -08:00
Jaisen Mathai
ea34ccbf6c gh-139 Update logic to set file access/modify time 2016-10-21 20:16:25 -07:00
Jaisen Mathai
051961db70 gh-136 Skip geolocation lookup if no key is found 2016-10-08 10:02:16 -07:00
Jaisen Mathai
341173e381 gh-129 Add --allow-duplicates flag for command line program 2016-09-07 21:08:13 -07:00
zserg
af36de091e Python 3 compartibility added 2016-08-21 17:58:13 +03:00
Jaisen Mathai
77266a7bd4
gh-108 Add tests for the import_file function in elodie.py 2016-04-20 22:37:12 -07:00
Jaisen Mathai
5a82de0da0
gh-100 Add support for text files and associated tests 2016-04-12 00:06:22 -07:00
Nathan Ostgard
c7a7f57b46 gh-79 Switched to click for argument parsing 2016-01-19 12:12:42 -08:00
Nathan Ostgard
4867d4d311 gh-69 Allow import to trash files 2016-01-09 16:57:38 -08:00
Nathan Ostgard
ea6a125fef gh-60 Added --source and --file for backwards compatibility 2016-01-08 09:50:59 -08:00
Nathan Ostgard
198983156b gh-60 Accept a list of inputs instead of source/file arguments 2016-01-08 09:50:59 -08:00
Nathan Ostgard
fa217e933b Added friendly errors when dependencies are not installed 2016-01-07 22:19:22 -08:00
Jaisen Mathai
58f0fadc07 gh-61 Add support for audio (m4a) files and accompanying tests 2016-01-03 22:10:56 -08:00
Jaisen Mathai
64695fea08 Fix import to use proper package name 2016-01-01 23:52:11 -08:00
Fabrice Laporte
02bae17e95 fix PEP8 warnings 2015-12-31 00:29:13 +01:00
Fabrice Laporte
636b43fca4 move some code out of _update() 2015-12-30 23:52:01 +01:00
Fabrice Laporte
5452aa9adb cleanup complex if/else conditions 2015-12-30 01:41:51 +01:00
Fabrice Laporte
8a7725f68e pythonify elodie.py
Remove C like parentheses around conditions.
Replace “xxx is None” => “not x”.
Use tuple when list content won’t change.
Fix some others PEP8 warnings.
2015-12-30 01:41:51 +01:00
Fabrice Laporte
4ca2013572 refactor duplicated code
the import code was duplicated in if/else branches and has been moved
into a specific import_file() function
2015-12-30 01:41:51 +01:00
Fabrice Laporte
4676c154b6 remove unused imports 2015-12-30 01:20:02 +01:00
Jaisen Mathai
d4dde66375 Closes gh-36 Fix bug with old references to Media.photo_extensions and Media.video_extensions 2015-12-18 20:08:12 -08:00
Jaisen Mathai
3442f2cc46 gh-16 Add --album-from-folder parameter to elodie.py and media.set_album_from_folder method 2015-12-01 01:03:00 -08:00
Patrick Santana
06fe15afe6 Fix use of ~ 2015-12-02 23:07:23 +01:00
Jaisen Mathai
f67314f6bc gh-2 Write to EXIF from earlier of modified or access time if no date is found in EXIF 2015-11-29 22:01:27 -08:00
Jaisen Mathai
a7aee65ca0 Add initial screen to add config information 2015-11-19 02:31:32 -08:00
Jaisen Mathai
a252a29c6b Add import support 2015-11-03 01:38:53 -08:00
Jaisen Mathai
816a95d0bc Combining import.py and update.py into elodie.py 2015-10-31 01:31:35 -07:00