added debug logging for postprocessor_hook
This commit is contained in:
parent
d9b905fbde
commit
ee8151ed64
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ class Download:
|
||||||
if data.get("postprocessor") != "MoveFiles" or data.get("status") != "finished":
|
if data.get("postprocessor") != "MoveFiles" or data.get("status") != "finished":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.debug:
|
||||||
|
LOG.debug(f"Postprocessor hook: {data}")
|
||||||
|
|
||||||
if "__finaldir" in data["info_dict"]:
|
if "__finaldir" in data["info_dict"]:
|
||||||
filename = os.path.join(data["info_dict"]["__finaldir"], os.path.basename(data["info_dict"]["filepath"]))
|
filename = os.path.join(data["info_dict"]["__finaldir"], os.path.basename(data["info_dict"]["filepath"]))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue