diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:17:26 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:17:26 +0200 |
commit | 77dd64c0757c0191b276e65c24ee9874959790c8 (patch) | |
tree | d6cdf2a02bad676982aa9f962835bb405d86a87b /raphodo/generatename.py | |
parent | 083849161f075878e4175cd03cb7afa83d64e7f5 (diff) |
New upstream version 0.9.1upstream/0.9.1
Diffstat (limited to 'raphodo/generatename.py')
-rw-r--r-- | raphodo/generatename.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/raphodo/generatename.py b/raphodo/generatename.py index 7723995..79ad2fc 100644 --- a/raphodo/generatename.py +++ b/raphodo/generatename.py @@ -206,7 +206,7 @@ class NameGeneration: # else keep extension case the same as what it originally was return extension - def _get_thm_extension(self): + def _get_thm_extension(self) -> None: """ Generates THM extension with correct capitalization, if needed """ @@ -214,7 +214,7 @@ class NameGeneration: self.rpd_file.thm_full_name ) - def _get_audio_extension(self): + def _get_audio_extension(self) -> None: """ Generates audio extension with correct capitalization, if needed e.g. WAV or wav @@ -223,7 +223,7 @@ class NameGeneration: self.rpd_file.audio_file_full_name ) - def _get_xmp_extension(self): + def _get_xmp_extension(self) -> None: """ Generates XMP extension with correct capitalization, if needed. """ @@ -232,6 +232,15 @@ class NameGeneration: self.rpd_file.xmp_file_full_name ) + def _get_log_extension(self) -> None: + """ + Generates LOG extension with correct capitalization, if needed. + """ + + self.rpd_file.log_extension = self._get_associated_file_extension( + self.rpd_file.log_file_full_name + ) + def _get_filename_component(self): """ Returns portion of new file / subfolder name based on the file name @@ -487,6 +496,7 @@ class NameGeneration: self._get_thm_extension() self._get_audio_extension() self._get_xmp_extension() + self._get_log_extension() name = self._filter_name(name, parts) |