diff options
author | Carlos Rosa <gokuroro@gmail.com> | 2018-04-04 11:04:31 -0300 |
---|---|---|
committer | Carlos Rosa <gokuroro@gmail.com> | 2018-04-04 11:04:31 -0300 |
commit | 1c615ffc20dcf9d30aba76b7a28374bc3ee85ac2 (patch) | |
tree | f7e6a2b1419a71c1b93d2e39ce15fb21262e627c /kindlecomicconverter/KCC_gui.py | |
parent | Allow for multiple file arguments on startup (diff) | |
download | kcc-1c615ffc20dcf9d30aba76b7a28374bc3ee85ac2.tar.gz kcc-1c615ffc20dcf9d30aba76b7a28374bc3ee85ac2.tar.bz2 kcc-1c615ffc20dcf9d30aba76b7a28374bc3ee85ac2.zip |
Make format checking more straightforward
Diffstat (limited to 'kindlecomicconverter/KCC_gui.py')
-rw-r--r-- | kindlecomicconverter/KCC_gui.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index 7959b40..48b3dd5 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -812,16 +812,11 @@ class KCCGUI(KCC_ui.Ui_mainWindow): if self.needClean: self.needClean = False GUI.jobList.clear() + formats = ['.cbz', '.zip', '.pdf'] if self.UnRAR: + formats.extend(['.cbr', '.rar']) if self.sevenza: - formats = ['.cbz', '.cbr', '.cb7', '.zip', '.rar', '.7z', '.pdf'] - else: - formats = ['.cbz', '.cbr', '.zip', '.rar', '.pdf'] - else: - if self.sevenza: - formats = ['.cbz', '.cb7', '.zip', '.7z', '.pdf'] - else: - formats = ['.cbz', '.zip', '.pdf'] + formats.extend(['.cb7', '.7z']) if os.path.isdir(message): GUI.jobList.addItem(message) GUI.jobList.scrollToBottom() |