Commit Graph

64 Commits

Author SHA1 Message Date
clemens fe8b033646 Rename python requirements file to standard name 2024-03-23 22:32:23 +09:00
clemens 13c67bdad5 project toml file, minor fixes for main file 2023-12-07 22:12:29 +09:00
clemens 1e4b210670 Python black format fixes 2023-12-01 23:50:27 +09:00
clemens 4f3d8d7800 pip packages updates 2023-11-27 23:06:06 +09:00
clemens 72b225bf10 Readme update, pip-requirements.lst file name change 2023-11-27 23:04:00 +09:00
clemens 5c536ccbe5 Flake8 statement 2023-11-02 23:58:18 +09:00
clemens d17b87c310 Clean up import code part
Fix reverse_geolocate module import loaders

Remove not used modules from main python script

Add the __pycache__ folder to ignore list
2023-05-05 14:21:55 +09:00
clemens ab997f2e22 Comment update 2022-12-21 23:57:49 +09:00
clemens b52e31a4dc Move functions into modules 2022-12-21 23:57:02 +09:00
clemens 829407bb14 Clean up format output 2022-12-17 01:21:15 +09:00
clemens cb429dd78e Code Clean up with pylance
Open: Sort Lambda check
2022-11-20 23:58:27 +09:00
clemens b7de6d8119 Reverse Geolocate Clean up run 2022-11-11 23:08:41 +09:00
clemens 65e352e8a4 Merge branch 'master' of github.com:gullevek/reverse_geolocate 2022-11-11 22:36:30 +09:00
clemens 38083d8a46 Add .venv folder to gitignore 2022-11-11 22:34:48 +09:00
clemens ce676dea72 Changed indent level for parser arguments
They are all now on the same level indented by one step
2022-11-11 22:32:55 +09:00
clemens 8548cc1f0f Add simpe debug print, add 'r' for all regex calls 2022-08-13 15:50:24 +09:00
clemens 63202b53f1 add -p for only list unset GPS long/lat entries 2020-10-20 23:59:32 +09:00
clemens 2836a40616 Add another City location lookup for google API 2020-10-20 22:33:46 +09:00
clemens 19a8c2b997 Fix for [Bug with exempi 2.5.0 #1]
With exempi 2.5.0 when the get_property was called on an unset one, it
crashed with "unkown error".

Fix with checking if property exists before actually getting the
property
v1.1.1
2019-04-01 20:58:45 +09:00
clemens 217cd87feb Update output info if update is from cache
on write change the output message from only "UPDATED" to also show if
it was read from cache by "UPDATED FROM CACHE"
2018-06-11 23:50:32 +09:00
clemens a0a023859a README update with new fuzzy option info
Also fix footer seperator width
v1.1.0
2018-05-18 15:43:48 +09:00
clemens 87f8ad4dae Fuzzy cache lookup flow added
Besides the exact GPS coordinate match and optional fuzzy match can be
used via the -d/--fuzzy-cache argument.

The default value is set to to 10m and can be set in the format number
and m/km. Eg 100m, 1km

During the run it calculates the distance from all previous cached
entries and if one falls inside the given fuzzy distance this lookup
data will be used and also stored in the direct GPS cache for further
direct GPS matches
2018-05-18 15:36:08 +09:00
clemens 2b1f9352ff Do double byte special format for all fields where possible
Not only for path, but also for filename, country, state, city and
location.

There is a possibility that double byte characters are inside, so this
needs to be special formatted too
v1.0
2018-05-08 10:10:58 +09:00
clemens 74f9cfa29b Write non Latin geolocation data if only non latin one is found
In case only non Latin geo location data is found, the first match will
be used to replace the not found Latin entry
2018-05-07 15:35:07 +09:00
clemens 3fd6282907 Fix non Latin based character return in google reverse geo lookup
In some occasions Google might return non Latin based character strings
for reverse lookups.
Fixed with:
* add language=en to force english as primary return
* check each return set and only use entries that have Latin based
characters
2018-05-07 12:37:36 +09:00
clemens db4298b141 Merge branch 'master' of github.com:gullevek/reverse_geolocate 2018-05-06 23:17:29 +09:00
clemens 6655f4164f Pre info fix for non Ascii data read check 2018-05-06 23:17:13 +09:00
clemens 4e4f5631ab Create CONTRIBUTING.md 2018-03-27 18:08:20 +09:00
clemens 508da722af Fix string length calculate for double byte characters 2018-03-16 18:38:41 +09:00
clemens e5bf0914c6 Code clean up
move some code into functions for better readability.
combine some code that can be in one set.
move LR read into post read only part.
2018-03-14 18:19:09 +09:00
clemens 4f4a0db7aa Fix double byte path format issues
When the path has double byte characters the length format does not work
and the path output will be too long for the space available.
We now use special double byte double count detection methods to adjust
the path length and output format
2018-03-14 14:55:35 +09:00
clemens b3ac5051d0 Make script flake8 compabile
Fix almost all flake8 warnings for coding style
- long lines are currently ignored
- the Google lookup has been simplified
- the if and for loop are not yet simplified
2018-03-12 17:08:48 +09:00
clemens c7491c0b31 Add route to allowed google return values, fix debug output 2018-03-12 00:18:24 +09:00
clemens cecb944671 Method documentation update 2018-03-09 14:04:32 +09:00
clemens e4e52927da New option to only list unset data
With the -u flag only XMP data that has unset or missing data will be
listed
2018-03-08 14:12:32 +09:00
clemens 134aff004a Better auto adjust width, bug fix for empty exclude list
If no exclude folders were given the list was not set so the initial
read failed.

Auto adjust to terminal size now works identical for smaller and larger
2018-03-08 10:06:57 +09:00
clemens a396bcb838 Add one spacer to auto adjust size minimize 2018-03-07 18:58:18 +09:00
clemens a4f694f5d6 Add auto adjust for columns based on terminal width
With flags -a to override any auto adjust and just keep default column
width. And flag -c for automatic compact view (40% column size
reduction)

The auto adjust on terminal size larger than needed is only for path
column at the moment.

For smaller it will auto adjust each column slowly in 10% steps until
the width is smaller than the terminal width.

Side note: CJK characters can still be reason for a skewed layout.
2018-03-07 18:32:21 +09:00
clemens a3496279a9 Update README file with correct stats output 2018-03-07 10:58:41 +09:00
clemens 56c8b20447 Merge branch 'master' of https://github.com/gullevek/reverse_geolocate
FIX PULL
2018-03-07 10:53:12 +09:00
clemens 677b2a05fb Exclude folders from processing, add Page number to list view
The include folders argument changed from -x to -i
-x is used for excluding folder or files form processing

In the list view the page number and max pages is also printed out
(cosmetic)
2018-03-07 10:24:00 +09:00
clemens c8c85d356b One } too much in backup file creation 2018-03-06 23:49:23 +09:00
clemens 869a2a647e Sort files on reading 2018-03-06 17:45:35 +09:00
clemens 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
clemens 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
clemens 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
clemens 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
clemens 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
clemens 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
clemens a4bd574e48 Debug output better format with description 2018-03-01 14:51:32 +09:00