mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
Upscaler 4.1.1: fixed python-magic detection issues, added more debug output
This commit is contained in:
parent
ac2d447391
commit
0c63768165
@ -50,7 +50,7 @@ language.install()
|
|||||||
_ = language.gettext
|
_ = language.gettext
|
||||||
|
|
||||||
# version information
|
# version information
|
||||||
UPSCALER_VERSION = '4.1.0'
|
UPSCALER_VERSION = '4.1.1'
|
||||||
|
|
||||||
# these names are consistent for
|
# these names are consistent for
|
||||||
# - driver selection in command line
|
# - driver selection in command line
|
||||||
@ -407,8 +407,14 @@ class Upscaler:
|
|||||||
# define processing queue
|
# define processing queue
|
||||||
self.processing_queue = queue.Queue()
|
self.processing_queue = queue.Queue()
|
||||||
|
|
||||||
|
Avalon.info(_('Loading files into processing queue'))
|
||||||
|
|
||||||
# if input is a list of files
|
# if input is a list of files
|
||||||
if isinstance(self.input, list):
|
if isinstance(self.input, list):
|
||||||
|
|
||||||
|
Avalon.info(_('Loading files from multiple paths'))
|
||||||
|
Avalon.debug_info(_('Input path(s): {}').format(self.input))
|
||||||
|
|
||||||
# make output directory if it doesn't exist
|
# make output directory if it doesn't exist
|
||||||
self.output.mkdir(parents=True, exist_ok=True)
|
self.output.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
@ -425,12 +431,15 @@ class Upscaler:
|
|||||||
|
|
||||||
# if input specified is single file
|
# if input specified is single file
|
||||||
elif self.input.is_file():
|
elif self.input.is_file():
|
||||||
Avalon.info(_('Upscaling single file: {}').format(self.input))
|
Avalon.info(_('Loading single file'))
|
||||||
|
Avalon.debug_info(_('Input path(s): {}').format(self.input))
|
||||||
self.processing_queue.put((self.input.absolute(), self.output.absolute()))
|
self.processing_queue.put((self.input.absolute(), self.output.absolute()))
|
||||||
|
|
||||||
# if input specified is a directory
|
# if input specified is a directory
|
||||||
elif self.input.is_dir():
|
elif self.input.is_dir():
|
||||||
|
|
||||||
|
Avalon.info(_('Loading files from directory'))
|
||||||
|
Avalon.debug_info(_('Input path(s): {}').format(self.input))
|
||||||
# make output directory if it doesn't exist
|
# make output directory if it doesn't exist
|
||||||
self.output.mkdir(parents=True, exist_ok=True)
|
self.output.mkdir(parents=True, exist_ok=True)
|
||||||
for input_path in [f for f in self.input.iterdir() if f.is_file()]:
|
for input_path in [f for f in self.input.iterdir() if f.is_file()]:
|
||||||
@ -443,6 +452,11 @@ class Upscaler:
|
|||||||
# record file count for external calls
|
# record file count for external calls
|
||||||
self.total_files = self.processing_queue.qsize()
|
self.total_files = self.processing_queue.qsize()
|
||||||
|
|
||||||
|
Avalon.info(_('Loaded files into processing queue'))
|
||||||
|
# print all files in queue for debugging
|
||||||
|
for job in self.processing_queue.queue:
|
||||||
|
Avalon.debug_info(_('Input file: {}').format(job[0].absolute()))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while not self.processing_queue.empty():
|
while not self.processing_queue.empty():
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user