mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-05-02 13:34:25 +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
|
# from https://stackoverflow.com/a/21978778/9785713
|
||||||
def log_subprocess_output(prefix: str, pipe: IO[bytes]):
|
def log_subprocess_output(prefix: str, pipe: IO[bytes]):
|
||||||
|
if pipe:
|
||||||
for line in iter(pipe.readline, b''): # b'\n'-separated lines
|
for line in iter(pipe.readline, b''): # b'\n'-separated lines
|
||||||
logger.debug('[%s]: %r', prefix, line.decode("utf8").strip())
|
logger.debug('[%s]: %r', prefix, line.decode("utf8").strip())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user