mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-02 15:24:26 +02:00
parent
c22fbfccaa
commit
e5d5285bf7
1
main.py
1
main.py
@ -52,6 +52,7 @@ is_subscription_course = False
|
||||
|
||||
# from https://stackoverflow.com/a/21978778/9785713
|
||||
def log_subprocess_output(prefix: str, pipe: IO[bytes]):
|
||||
if pipe:
|
||||
for line in iter(pipe.readline, b''): # b'\n'-separated lines
|
||||
logger.debug('[%s]: %r', prefix, line.decode("utf8").strip())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user