Commit Graph

21 Commits

Author SHA1 Message Date
4ef2e15aec Split File + Path for listing output
I do not surpress the path, but move it to the end of the listing output
2018-03-06 12:27:21 +09:00
c312290a8d Update backup file flow, strip out path for listing data
When we list data I strip out the path because if there are any CJK
files inside it will break the layout [TODO: fix this better]

The backup file creates a new backup file each time the file gets
written with ".BK.n." where n is a number starting from 1
2018-03-06 12:04:46 +09:00
0f66e19310 Bug fixes for overwrite, google data search
Data was not written if some data was found in LR and then a Maps
lookup was done. This was because the overwrite check was done on set
data not original data
Add debug URL output to google (requests)
Add more valid types to look for an address in the returned data for
Google Maps API
Removed spaces from some lines
Skip XMP files with .BK. inside, they are backup files
Look into double-byte characters and print layout issues -> open
2018-03-05 23:54:42 +09:00
500a3cb91c Simplify the header string write
Instead of writing each line separate, build the full header string in
one set
2018-03-05 16:55:31 +09:00
9e59f81b9d read only line format change
Instead of complex string building, use the standard format() call to
set lengths before we use it to replace it with actual data
2018-03-05 16:00:04 +09:00
41bae7eb5d Add list data only flag
With the -r flag data will only be read from the XMP files and printed
out and no other action (LR lookup, Maps lookup) is performed
2018-03-05 15:52:07 +09:00
a4bd574e48 Debug output better format with description 2018-03-01 14:51:32 +09:00
c99962ad0d Wording fix for LR read more than one row error 2018-03-01 11:50:31 +09:00
9ff2ec6c9c Argument debug output update 2018-03-01 10:52:59 +09:00
e28659fd88 Config file settings
Google API key and OpenStreetMap Email can be written to a config file
2018-03-01 10:10:47 +09:00
cf06ef35eb Change the python3 shebang to env to find python3 automatically 2018-02-27 14:34:40 +09:00
ef7e071a7d Update OpenStreetMap query with email, fix requests parameters
OpenStreetMap has optional parameter email to add an email address for
large requests amount.
Also check google and open street map options do not overlap.

All requests are now built with the parameters option when queries so
any parameter given is automatically correctly encoded.
2018-02-26 14:32:28 +09:00
05bc66e57d Add OpenStreetMaps to reverse geo lookup
Location data can be checked from OpenStreetMaps too
2018-02-26 13:51:45 +09:00
8bc346f28c Debug output for google maps search long/lat data 2018-02-26 10:09:18 +09:00
9088995ff9 Update documentation about install 2018-02-26 09:14:59 +09:00
cf38bd34fb Remove old debug messages and update google geo data flow comment 2018-02-23 18:57:26 +09:00
58d9f4ebde Add strict Lightroom check, various bug fixes for overwrite and check
If -s (--strict) argument is given it will check the path too and not
only the file basename.

The following bug fixes have been done:
- if verbose was not given it was unset and so google lookup debug
output crashed. Is set to 0 on unset
- if data is found multiple times in the Lightroom DB we print out a
different warning and not put it into the not found group
- after a google lookup write the data back into the base set for debug
output purposes
- if Lightroom data is used for overwrite data was never written because
the unset check was done on the already set data and not the original
unset data
2018-02-23 16:27:10 +09:00
3e68351e8f Align stats numbers to the right 2018-02-23 14:30:19 +09:00
4b282c3d13 README file update, Script update to first release 2018-02-23 11:15:50 +09:00
1aa052bc5d Initial checkin of script 2018-02-23 09:34:35 +09:00
77f755c40f Initial commit 2018-02-23 09:32:15 +09:00