ivandokov / phockup

Media sorting tool to organize photos and videos from your camera in folders by year, month and day.
MIT License
856 stars 108 forks source link

Feature added: Issue #65 #204

Closed AamerShareef closed 1 year ago

AamerShareef commented 1 year ago

Added feature - Issue #65.

New flags added 🥳

--filename_add_original (or) -ao : Adds the original filename to the new filename --filename_suffix : Adds a custom suffix to the new filename.

Sample Output:

1227c98e03af:/opt/phockup# ./phockup.py /mnt/test_input/ /mnt/test_output/ -y --filename_add_original --filename_suffix=NIKON

[2023-07-01 12:02:01] - [WARNING] - Dry-run phockup (does a trial run with no permanent changes)...
[2023-07-01 12:02:01] - [INFO] - /mnt/test_input/DSCF1904.JPG => /mnt/test_output/2023/05/18/20230518-041043_DSCF1904_NIKON.JPG
[2023-07-01 12:02:01] - [INFO] - Processed 1 files in 0.10 seconds. Average Throughput: 9.93 files/second
[2023-07-01 12:02:01] - [INFO] - Would have copied 1 files.

1227c98e03af:/opt/phockup# ./phockup.py /mnt/test_input/ /mnt/test_output/ -y --filename_add_original 
[2023-07-01 12:11:13] - [WARNING] - Dry-run phockup (does a trial run with no permanent changes)...
[2023-07-01 12:11:13] - [INFO] - /mnt/test_input/DSCF1904.JPG => /mnt/test_output/2023/05/18/20230518-041043_DSCF1904.JPG
[2023-07-01 12:11:13] - [INFO] - Processed 1 files in 0.09 seconds. Average Throughput: 10.63 files/second

1227c98e03af:/opt/phockup# ./phockup.py /mnt/test_input/ /mnt/test_output/ -y --filename_suffix=NIKON
[2023-07-01 12:12:14] - [WARNING] - Dry-run phockup (does a trial run with no permanent changes)...
[2023-07-01 12:12:15] - [INFO] - /mnt/test_input/DSCF1904.JPG => /mnt/test_output/2023/05/18/20230518-041043_NIKON.JPG
[2023-07-01 12:12:15] - [INFO] - Processed 1 files in 0.09 seconds. Average Throughput: 10.55 files/second
[2023-07-01 12:12:15] - [INFO] - Would have copied 1 files.

1227c98e03af:/opt/phockup# ./phockup.py /mnt/test_input/ /mnt/test_output/ -y
[2023-07-01 12:12:40] - [WARNING] - Dry-run phockup (does a trial run with no permanent changes)...
[2023-07-01 12:12:40] - [INFO] - /mnt/test_input/DSCF1904.JPG => /mnt/test_output/2023/05/18/20230518-041043.JPG
[2023-07-01 12:12:40] - [INFO] - Processed 1 files in 0.09 seconds. Average Throughput: 10.66 files/second
[2023-07-01 12:12:40] - [INFO] - Would have copied 1 files.
AamerShareef commented 1 year ago

This is for issue #65 not 63 :)

ivandokov commented 1 year ago

Please add tests for the new features.

ivandokov commented 1 year ago

I'm closing this PR as it needs to be updated to fit the current state of the code as it has conflicts. Also some of the features are already merged.