This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
classMyLogger:
defdebug(self,msg):
# For compatibility with youtube-dl, both debug and info are passed into debug
# You can distinguish them by the prefix '[debug] '
ifmsg.startswith('[debug] '):
pass
else:
self.info(msg)
definfo(self,msg):
pass
defwarning(self,msg):
pass
deferror(self,msg):
print(msg)
# ℹ️ See "progress_hooks" in help(yt_dlp.YoutubeDL)
defmy_hook(d):
ifd['status']=='finished':
print('Done downloading, now post-processing ...')