comictagger/comictaggerlib
lordwelch 2e01a4db14 Improve file renaming
Moves to Python format strings for renaming, handles directory
structures, moving of files to a destination directory, sanitizes
file paths with pathvalidate and takes a different approach to
smart filename cleanup using the Python string.Formatter class

Moving to Python format strings means we can point to python
documentation for syntax and all we have to do is document the
properties and types that are attached to the GenericMetadata class.

Switching to pathvalidate allows comictagger to more simply handle both
directories and symbols in filenames.

The only changes to the string.Formatter class is:
1. format_field returns
an empty string if the value is none or an empty string regardless of
the format specifier.
2. _vformat drops the previous literal text if the field value
is an empty string and lstrips the following literal text of closing
special characters.
2021-12-15 11:00:01 -08:00
..
graphics Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
ui Improve file renaming 2021-12-15 11:00:01 -08:00
__init__.py Name conflict with launcher script 2013-02-07 04:00:20 +00:00
autotagmatchwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
autotagprogresswindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
autotagstartwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
cbltransformer.py Huge code cleanup 2015-02-22 03:30:32 +01:00
cli.py Improve file renaming 2021-12-15 11:00:01 -08:00
comet.py autopep8 2015-02-15 11:44:00 +01:00
comicarchive.py autopep8 -aa 2015-02-15 12:55:04 +01:00
comicbookinfo.py Huge code cleanup 2015-02-22 03:30:32 +01:00
comicinfoxml.py Huge code cleanup 2015-02-22 03:30:32 +01:00
comicvinecacher.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
comicvinetalker.py Merge pull request #199 from lordwelch/seriesSearch 2021-09-26 17:09:54 -07:00
coverimagewidget.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
crediteditorwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
exportwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
filenameparser.py Huge code cleanup 2015-02-22 03:30:32 +01:00
filerenamer.py Improve file renaming 2021-12-15 11:00:01 -08:00
fileselectionlist.py Changed: use unrar-cffi for cbr handling (#151) 2019-10-05 23:59:52 +02:00
genericmetadata.py Huge code cleanup 2015-02-22 03:30:32 +01:00
imagefetcher.py Move to python requests module 2021-08-11 20:13:53 -07:00
imagehasher.py Fix errors 2021-08-05 17:21:21 -07:00
imagepopup.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
issueidentifier.py Merge pull request #199 from lordwelch/seriesSearch 2021-09-26 17:09:54 -07:00
issueselectionwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
issuestring.py autopep8 -a 2015-02-15 12:44:09 +01:00
logwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
main.py Better console handling on Windows (#162) 2019-10-06 05:15:18 -07:00
matchselectionwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
optionalmsgdialog.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
options.py Better console handling on Windows (#162) 2019-10-06 05:15:18 -07:00
pagebrowser.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
pagelisteditor.py Fix errors 2021-08-05 17:21:21 -07:00
pageloader.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
progresswindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
renamewindow.py Improve file renaming 2021-12-15 11:00:01 -08:00
settings.py Improve file renaming 2021-12-15 11:00:01 -08:00
settingswindow.py Improve file renaming 2021-12-15 11:00:01 -08:00
taggerwindow.py Cleanup metadata handling 2021-08-07 21:54:29 -07:00
utils.py autopep8 -a 2015-02-15 12:44:09 +01:00
versionchecker.py Move to python requests module 2021-08-11 20:13:53 -07:00
volumeselectionwindow.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00