diff --git a/CHANGELOG.md b/CHANGELOG.md index c028d41..28a4f32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. ## [0.4.1] - Better delimiter support +- %LENS tag ## [0.4.0] - Initial repo version \ No newline at end of file diff --git a/README.md b/README.md index 6225984..7db7c9b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ **%DTO** Timestamp (with fallback to file modification date) **%DUR** Video Duration (formatted) **%SW** Software (formatted) -**%MODEL** Digital Camera Model +**%MODEL** Digital Camera Model +**%LENS** Lens (formatted) **%PLACE** Formatted location (from GPS coordinates) ## Screenshots diff --git a/Rollup.app.zip b/Rollup.app.zip index d57ef4b..4bafd3f 100644 Binary files a/Rollup.app.zip and b/Rollup.app.zip differ diff --git a/Rollup.php b/Rollup.php index 7356d3b..c53669a 100755 --- a/Rollup.php +++ b/Rollup.php @@ -25,9 +25,10 @@ $p['vfiletypes'] = array("mov","mp4","m4v"); $p['screenshot_dims'] = array(320,640,750,828,1125,1242); $p['delimiters'] = array(" ","_","-","+"); -// Enable this option to verify newnames against those made with a prior version of rollup +// Debug options -$p['debug_verify_names'] = 0; +$p['debug_verify_names'] = 0; // Verify newnames against those made with a prior version of rollup +$p['debug_lens'] = 0; // Output raw lens data to verify formatting // No files dragged @@ -119,6 +120,7 @@ foreach ($files as $file) { $z['%DUR'] = formatDuration($e); $z['%SW'] = formatSoftware($e,$p); $z['%MODEL'] = formatModel($e); + $z['%LENS'] = formatLens($e); $z['%PLACE'] = formatPlace($e,$p); if (in_array($ext,$p['pfiletypes'])) { @@ -160,7 +162,9 @@ foreach ($files as $file) { } } } - + + if ($p['debug_lens']) { echo "\n".@$e['LensModel']."\n".@$e['FocalLength']."\n"; } + echo updateProgress($i,count($files)); $i++; diff --git a/functions.php b/functions.php index 28ea43a..ffb016a 100755 --- a/functions.php +++ b/functions.php @@ -1,5 +1,19 @@ 25) { $string = "Normal"; } + if ($fl > 50) { $string = "Tele"; } + if (strpos(@$e['LensModel']," front ") != false) { $string = "Front"; } + return $string; + } + function formatDateTime($e) { if (@$e['DateTimeOriginal']) { $dto = $e['DateTimeOriginal'];