link_mode small fix
This commit is contained in:
@@ -514,8 +514,8 @@ def main():
|
||||
print(f"[+]Load Config file '{conf.ini_path}'.")
|
||||
if conf.debug():
|
||||
print('[+]Enable debug')
|
||||
if conf.link_mode():
|
||||
print('[!]Enable soft link')
|
||||
if conf.link_mode() in (1, 2):
|
||||
print('[!]Enable {} link'.format(('soft', 'hard')[conf.link_mode() - 1]))
|
||||
if len(sys.argv) > 1:
|
||||
print('[!]CmdLine:', " ".join(sys.argv[1:]))
|
||||
print('[+]Main Working mode ## {}: {} ## {}{}{}'
|
||||
|
||||
@@ -129,7 +129,7 @@ class Config:
|
||||
def actor_gender(self) -> str:
|
||||
return self.conf.get("common", "actor_gender")
|
||||
|
||||
def link_mode(self) -> bool:
|
||||
def link_mode(self) -> int:
|
||||
return self.getint_override("common", "link_mode")
|
||||
|
||||
def scan_hardlink(self) -> bool:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
main_mode=1
|
||||
failed_output_folder=data/failure_output
|
||||
success_output_folder=data/organized
|
||||
soft_link=0
|
||||
link_mode=0
|
||||
|
||||
[proxy]
|
||||
proxy=
|
||||
|
||||
Reference in New Issue
Block a user