Go to file
lordwelch 0747a6b0ef 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.
2019-09-05 14:40:17 -07:00
comicapi Cleanup metadata handling 2019-09-05 14:40:14 -07:00
comictaggerlib Improve file renaming 2019-09-05 14:40:17 -07:00
desktop-integration Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
google Huge code cleanup 2015-02-22 03:30:32 +01:00
mac #87 Update comic vine url and ssl config (#93) 2017-12-21 15:19:45 +01:00
scripts Prevent error when no file has been detected 2015-03-21 14:32:55 +01:00
unrar feat: add appveyor configuration 2018-01-17 13:35:10 -08:00
windows Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
.gitignore Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
appveyor.yml feat: add appveyor configuration 2018-01-17 13:35:10 -08:00
comictagger.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
comictagger.spec Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
current_version.txt #87 Update comic vine url and ssl config (#93) 2017-12-21 15:19:45 +01:00
Makefile Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
MANIFEST.in Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
README.md Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
release_notes.txt #87 Update comic vine url and ssl config (#93) 2017-12-21 15:19:45 +01:00
requirements.txt Improve file renaming 2019-09-05 14:40:17 -07:00
setup.py Python3 and QT5 upgrade (#109) 2018-09-19 22:05:39 +02:00
todo.txt Huge code cleanup 2015-02-22 03:30:32 +01:00

A fork from the primary dev branch at https://github.com/davide-romanini/comictagger

Changes:

  • Ported to Python 3
  • Ported to PyQt5
  • Added more application and GUI awareness of the unrar library, and removed references to the old scheme that used the unrar executable.
  • Got setup.py working again to build sdist packages, suitable (I think) for PyPI. An install from the package will attempt to build unrar library. It should work on most Linux distros, and was tested on a Mac OSX system with dev tools from homebrew. If the library doesn't build, the GUI has instructions on where to download the library.
  • Removed/changes obsolete links to old Google code website.
  • Set a environment variable to scale the GUI on 4k displays

Notes:

  • I did some testing with the pyinstaller build, and it worked on both platforms. I did encounter two problems:
  • In setup.py you can also find the remains of an attempt to do some desktop integration from a pip install. It does work, but can cause problems with wheel installs, and I don't know if it's worth the bother. I kept the commented-out code in place, just in case.

With Python 3, it's much easier to get the app working from scratch on a new distro, as all of the dependencies are available as wheels, including PyQt5, so just a simple "pip install comictagger.zip" is all that's needed.