28 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
Jaisen Mathai
9e42edfa76
Create a test runner script in python to run unit tests (#321) 2019-07-11 01:51:34 -07: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
Jaisen Mathai
00ba7e2604 Add tests to verify unicode checkmark in file name is handled correctly. #226 (#227) 2017-07-11 21:11:51 -07:00
Jaisen Mathai
1535db5aa4 Temporarily disable tests for send2trash until new pip package is released #230. (#231)
See hsoft/send2trash/pull/11 for details
2017-07-11 21:04:28 -07: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
e3123872c4 Add fallback folder support when configuring folder hierarchy. #199 (#209)
* add test
2017-04-12 23:33:18 -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
2e0a59b7d8 Check if string is unicode before encoding (#180) 2017-01-08 14:43:01 -08:00
Jaisen Mathai
78880a6020 Add support for directories as argument to update command #178 (#182) 2017-01-07 21:49:00 -08:00
Jaisen Mathai
9fd03f0729 Fix tests for reset/restore dbs function moved to helper module (#175) 2017-01-02 21:14:21 -08:00
Terence Eden
cd5ba92b0b Support user defined folder structure (#5) (#160)
* Custom date directories
* Add config module to parse ini files
* Add method/tests to get a customizable folder path
* Cache path definition
* Initial working version of custom paths
* Add Directory values in sample config
* Refactoring location parsing logic and adding tests
* Remove unused functions
* Add documentation to parse_mask_for_location
* Remove commented out code
* Add tests for migrating old location db to new
2017-01-02 20:58:52 -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
Jaisen Mathai
0c1aa2954e gh-121 Add test to check --trash argument (#165) 2016-12-22 21:35:15 -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
7c3f323c44 Closes gh-159 Remove RESULT as global variable in elodie.py 2016-12-15 01:24:04 -08:00
Jaisen Mathai
bf24f9689a gh-154 Add command to regenerate the hash database 2016-12-13 00:08:08 -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
cb52210077 gh-61 Enable tests for audio files 2016-11-07 23:27:32 -08:00
Jaisen Mathai
69467e6433 Refactor geolocation module and tests 2016-10-25 22:20:16 -07:00
Jaisen Mathai
341173e381 gh-129 Add --allow-duplicates flag for command line program 2016-09-07 21:08:13 -07:00
Jaisen Mathai
ea8a13b5af gh-61 gh-108 Enable audio/video EXIF writing tests on Travis 2016-06-24 00:53:27 -04:00
Jaisen Mathai
6114328f32 gh-62 [WIP] Remove pyexiv2 and avmetareadwrite dependency 2016-06-22 15:45:30 -04:00
Jaisen Mathai
bb773b0c4c
gh-108 Add tests to elodie.update_time 2016-04-21 19:38:00 -07:00
Jaisen Mathai
969251f9cd
gh-108 Add tests to elodie.update_location 2016-04-21 19:12:25 -07:00
Jaisen Mathai
77266a7bd4
gh-108 Add tests for the import_file function in elodie.py 2016-04-20 22:37:12 -07:00