You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the rich library and was able to make a nice multithreaded ffmpeg wrapper with progress using the downloader.py example. However, I found it did not handle keyboard interrupts, at least on Windows.
With the following changes to the threadpool, it handles keyboard interrupts. Please consider incorporating something similar in the example. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I love the rich library and was able to make a nice multithreaded
ffmpeg
wrapper with progress using the downloader.py example. However, I found it did not handle keyboard interrupts, at least on Windows.With the following changes to the threadpool, it handles keyboard interrupts. Please consider incorporating something similar in the example. Thanks!
Original:
Updated:
I also found the signal handling could be removed with the following change to the while/wait loop instead:
Beta Was this translation helpful? Give feedback.
All reactions