Commit Graph

223 Commits

Author SHA1 Message Date
Jaisen Mathai 8950f756fe
Make reset_dbs() / restore_dbs() more robust #260 (#263)
* Make reset_dbs() / restore_dbs() more robust

If reset_dbs() is called and the test errors restore_dbs() is not called. On Windows this leads to an error the next time they're called because ~/hash.json-test and ~/location.json-test still exist.

* Add rename function to compatability module for 2.7 support
2017-12-06 15:46:00 -08:00
Jaisen Mathai 4cd91e9f2d
Add support for camera make and model in directory path #254 (#255) 2017-11-14 23:14:26 -08:00
Jaisen Mathai 362b1b1363
Add tests to reproduce error when source path has folder component of numbers #239 (#241) 2017-10-31 23:22:03 -07:00
Ove Stavnås f23894d426 fix problem when no geolocation key is provided and invalid dict is cached #214 (#233)
* fix problem when no geolocation key is provided #214
2017-09-07 16:59:16 -07:00
Adam Candy fbc7b04ef2 Fix bug so process_file will set access time on destination instead of source. Closes #237 (#238) 2017-08-06 14:29:34 -07:00
Ove Stavnås e5e811b215 Fix bug with fallback values in full_path variables in config.ini (#234)
* Add test for gh-234

* Force flush of cached configs in test
2017-08-06 14:26:28 -07: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 9be5ab13fc Skip copying file if source is identical to destination. #210 (#211)
This prevents a zero byte file from being written
2017-04-12 23:42:44 -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 6777c32588 Do not store "Unknown Location" in the location.json database. #203 (#208) 2017-04-08 02:10:55 +05:30
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 74d8675b20 Add support for multiple levels of folders. #199 (#205)
* Use original name from EXIF instead of parsing assumed file name format. #107
* Updates to docs and code
2017-03-30 19:43:34 +05:30
Jaisen Mathai f7be8f323f Use original name from EXIF instead of parsing assumed file name format. #107 (#202) 2017-03-16 23:43:47 -07:00
Jaisen Mathai 31db4e661a Return dictionary with "Unknown Location" instead of string when location is not found #106 (#201) 2017-03-15 22:43:21 -07:00
Jaisen Mathai 56f0b1e170 Fix unicode decoding bug in compatability.py and add_original_name.py (#194) 2017-01-24 00:25:52 -08:00
Jaisen Mathai ed1dbc6c9a Normalize title before updating EXIF #017 (#193) 2017-01-23 00:23:49 -08:00
Jaisen Mathai ce98e89c65 Change source to path and check if media is None #107 (#192) 2017-01-22 23:54:28 -08:00
Jaisen Mathai 84251d276e Fix bug in tool and add __init__.py #107 (#191) 2017-01-22 23:42:31 -08:00
Jaisen Mathai 15cfe61e03 Add tool to retroactively add OriginalFileName to all files in library #107 (#190) 2017-01-22 23:18:28 -08:00
Jaisen Mathai 0864f58a12 Add original file name methods to text and media class #186 (#187) 2017-01-22 00:19:44 -08:00
Jaisen Mathai 4a7df2d57d Add improved copy method for large files #173 (#189) 2017-01-21 21:21:03 -08:00
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 a48a2edb62 Fix bug where zero value for latitude/longitude causes error gh-171 (#176) 2017-01-03 00:49:56 -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 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 bf24f9689a gh-154 Add command to regenerate the hash database 2016-12-13 00:08:08 -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 a1d3cb35fc Add log module and tests 2016-11-09 20:07:44 -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 1bc13675da gh-27 Enable non-ascii tests for audio and video 2016-11-07 23:31:36 -08:00
Jaisen Mathai cb52210077 gh-61 Enable tests for audio files 2016-11-07 23:27:32 -08:00
Jaisen Mathai 852850d2e6 gh-145 Fix configparser unit test error for python 2 and 3 2016-11-07 20:47:16 -08:00
Jaisen Mathai e4043a04b8 Add geolocation tests 2016-10-29 23:54:27 -07:00
Jaisen Mathai 69467e6433 Refactor geolocation module and tests 2016-10-25 22:20:16 -07:00
Jaisen Mathai ea34ccbf6c gh-139 Update logic to set file access/modify time 2016-10-21 20:16:25 -07:00
Daniel Dräs f00d8b8744 gh-139 added change requests 2016-10-21 17:17:00 -07:00
Daniel Dräs 56847511b9 gh-139 Add files via upload
added hours, minutes and seconds
2016-10-21 17:16:36 -07:00
Daniel Dräs 54f3fac155 gh-139 Target Directory on NAS 2016-10-21 17:16:22 -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 e13abefb7c Merge pull request #132 from jmathai/increase-coverage
Merge pull request #131 from jmathai/increase-coverage
2016-09-13 20:33:45 -07:00
Jaisen Mathai 10b45cba78 gh-40 Increase test coverage for media and geolocation modules 2016-09-13 20:10:29 -07:00
Jaisen Mathai 55df0719e8 Merge pull request #131 from jmathai/increase-coverage
gh-40 Add tests to increase coverage in geolocation and photo module
2016-09-13 15:33:42 -07:00
Jaisen Mathai 71b1e9f0ed gh-40 Add tests to increase coverage in geolocation and photo module 2016-09-12 22:28:17 -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 fe70227c71 gh-127 Fallback to latin if utf-8 decode fails in pyexiftool.py 2016-09-07 20:51:57 -07:00
Jaisen Mathai ab77938408 Merge branch 'master' into improve-tests 2016-09-04 21:45:41 -07:00
Jaisen Mathai 5f5ba73934 gh-40 Create test generator for testing various RAW formats 2016-09-04 21:40:56 -07:00
Jaisen Mathai fe6121e43b Merge pull request #125 from jmathai/cr2-support-gh-124
gh-124 Add support for cr2 files
2016-09-04 16:20:39 -07:00
Jaisen Mathai 10e078baa5 gh-124 Add support for cr2 files 2016-09-04 16:15:11 -07:00
ZSerg ad1cbefb15 PEP8 fix 2016-08-22 09:10:45 +03:00
zserg af36de091e Python 3 compartibility added 2016-08-21 17:58:13 +03:00
Jaisen Mathai 792a86190a Remove plist_parser.py and omit external libraries from code coverage 2016-06-24 01:46:56 -04:00
Jaisen Mathai 0e9237366a gh-94 Enable test to write to RW2 files 2016-06-24 01:02:15 -04: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 21b7c9fad1 gh-120 Update EXIF date taken tags to use EXIF:CreateDate and EXIF:ModifyDate 2016-06-24 00:49:40 -04:00
Jaisen Mathai cbfd39a20e gh-119 Use XMP-xmpDM:Album instead of user defined tag with fallback support 2016-06-24 00:34:51 -04:00
Jaisen Mathai cb38bf5176 Fix numerous flake8 warnings 2016-06-24 00:31:58 -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
Jaisen Mathai bd32c87b37
gh-113 Check for a file extension before doing a string in tuple conditional 2016-04-19 21:33:08 -07:00
Jaisen Mathai 479452b31c
gh-98 Check parsed metadata header in text file for type of dict 2016-04-19 21:09:27 -07:00
Jaisen Mathai e27fb951bc gh-98 Update calls to metadata to check that type is dict 2016-04-15 14:54:15 -07:00
Jaisen Mathai 1a1a50e656 gh-98 Check that metadata is dictionary before accessing it 2016-04-14 22:15:46 -07:00
Jaisen Mathai a0f744c082
gh-99 Add support for Sony ARW format 2016-04-12 23:47:41 -07:00
Jaisen Mathai ca04d3ca48
gh-32 Add `Creation Date (und-US)` to list of exif fields to read to support older versions of exiftool 2016-04-12 01:51:25 -07:00
Jaisen Mathai 5a82de0da0
gh-100 Add support for text files and associated tests 2016-04-12 00:06:22 -07:00
Jaisen Mathai 1c0372141f gh-93 Add tests for RW2 files
gh-94 Skip test for writing to RW2 files because they are not supported
2016-03-23 11:29:02 -07:00
Jaisen Mathai 4c269b538a gh-92 Add support for RW2 (RAW) files 2016-03-23 09:41:22 -07:00
Jaisen Mathai a66fc7ca41 gh-31 Remove raise SkipTest for geolocation tests due to precision loss 2016-03-23 09:35:32 -07:00
Jaisen Mathai f234cb989d gh-93 Update media module to test for string before calling string functions 2016-03-23 00:25:27 -07:00
Jaisen Mathai ed127aa402 gh-93 Add tests for dng and nef files 2016-03-23 00:09:25 -07:00
Jaisen Mathai 510d81e142 Update Readme files to include links and information about GUI app 2016-03-20 00:46:31 -07:00
Jaisen Mathai 482f3d4de4 Fix syntax errors reported by flake8 2016-03-14 21:54:06 -07:00
Jaisen Mathai bd5a49d66c gh-89 Reapply album to video when updating EXIF via avmetareadwrite
Add failing test for when setting album then title reverts album
2016-03-14 21:39:40 -07:00
Nathan Ostgard bbd3cdacc0 Added a Dockerfile 2016-03-01 18:53:20 -08:00
Craig Davison 1b1725fd8b Add .mpg and .mpeg to valid video file extensions 2016-02-14 17:41:13 +00:00
Jaisen Mathai e35e0ce471 gh-84 Added tests for invalid files with valid file extensions 2016-02-14 01:03:18 -08:00
Aaron Barnes 63ead49bcb gh-84 Do not attempt to process an invalid file 2016-02-14 21:28:13 +13:00
zserg b686e7c228 LatLon removed 2016-02-12 22:22:26 +03:00
Jaisen Mathai 5204253ad2 gh-82 Fix notifications from flake8 and add mock module to requirements.txt 2016-02-11 15:24:42 -08:00
ZSerg 0d154d67c9 Accepted-Language is moved to constants. TZ fix functions is moved to helper 2016-01-28 21:30:13 +03:00
zserg 70724d59ac Accepted-language is set to English to prevent Unocode issues in the location response from openmapquest 2016-01-27 22:37:29 +03:00
zserg 215e95149c gui app for windows fix (v1) 2016-01-27 19:27:12 +04:00
zserg 582d609023 windows timezone problem in filesystem test fixed 2016-01-27 18:28:18 +04:00
zserg 6e6f88c336 some fixes in subprocess.Popen args for windows/linux support 2016-01-27 15:54:56 +03:00
zserg 91e886163e core and photo_tests fixed 2016-01-26 22:01:05 +03:00
Nathan Ostgard 718d8c1306 gh-76 Split up general requirements and test requirements 2016-01-17 23:58:27 -08:00
Jaisen Mathai c55b14e6c4 gh-74 Check for existing EXIF field before writing and create if needed. Add test case. 2016-01-12 20:48:58 -08:00