added debug logging for postprocessor_hook

This commit is contained in:
ArabCoders 2025-01-02 20:20:15 +03:00
parent d9b905fbde
commit ee8151ed64

View file

@ -97,6 +97,9 @@ class Download:
if data.get("postprocessor") != "MoveFiles" or data.get("status") != "finished":
return
if self.debug:
LOG.debug(f"Postprocessor hook: {data}")
if "__finaldir" in data["info_dict"]:
filename = os.path.join(data["info_dict"]["__finaldir"], os.path.basename(data["info_dict"]["filepath"]))
else: