changed messages in recovery.py and update readme.md
This commit is contained in:
parent
747a7dd15f
commit
6c22af1b79
21
readme.md
21
readme.md
|
@ -76,3 +76,24 @@ Use the -k parameter to keep the original filenames:
|
|||
|
||||
For the case you want to reduce or increase the timespan between events, simply use the parameter -d. The default is 4:
|
||||
```python recovery.py <path to files recovered by Photorec> <destination> -d10```
|
||||
|
||||
|
||||
#### Rename jpg-files with <Date>_<Time> from EXIF data if possible
|
||||
|
||||
If the original jpg image files were named by <Date>_<Time> it might be useful to rename the recovered files in the same way. This can be done by adding the parameter -j.
|
||||
```python recovery.py <path to files recovered by Photorec> <destination> -j```
|
||||
|
||||
If no EXIF data can be retrieved the original filename is kept.
|
||||
|
||||
In case there are two or more files with the same EXIF data the filename is extended by an index to avoid overwritng files.
|
||||
|
||||
The result will look like:
|
||||
```
|
||||
20210121_134407.jpg
|
||||
20210122_145205.jpg
|
||||
20210122_145205(1).jpg
|
||||
20210122_145205(2).jpg
|
||||
20210122_145813.jpg
|
||||
20210122_153155.jpg
|
||||
```
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ def get_args():
|
|||
parser.add_argument('-m', '--split-months', action='store_true', required=False, help='split JPEG files not only by year but by month as well')
|
||||
parser.add_argument('-k', '--keep_filename', action='store_true', required=False, help='keeps the original filenames when copying')
|
||||
parser.add_argument('-d', '--min-event-delta', type=int, default=4, required=False, help='minimum delta in days between two days')
|
||||
parser.add_argument('-j', '--date_time_filename', action='store_true', required=False, help='sets the filename to the exif date and time if possible - otherwise set filename depending on -k')
|
||||
parser.add_argument('-j', '--date_time_filename', action='store_true', required=False, help='sets the filename to the exif date and time if possible - otherwise keep the original filename')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
@ -86,7 +86,7 @@ print("Reading from source '%s', writing to destination '%s' (max %i files per d
|
|||
if keepFilename:
|
||||
print("I will keep you filenames as they are")
|
||||
elif date_time_filename:
|
||||
print("If possible I will rename your files like <Date>_<Time>.jpg - otherwise keep you filenames as they are")
|
||||
print("If possible I will rename your files like <Date>_<Time>.jpg - otherwise keep the filenames as they are")
|
||||
else:
|
||||
print("I will rename your files like '1.jpg'")
|
||||
|
||||
|
|
Loading…
Reference in New Issue