FallingLights / Teachable-dl

Course downloader for teachable platform written in python3 using selenium and yt-dlp
GNU Lesser General Public License v3.0
106 stars 27 forks source link

[FEATURE] Keep the browser from stealing focus #45

Open jdunlap opened 2 months ago

jdunlap commented 2 months ago

When downloading a course, the browser repeatedly steals focus.

The browser needs to not steal focus while the script is running to allow the user to complete other tasks while a download is running in the background.

famasf1 commented 2 months ago

Apparently the issue comes down to how Selenium work. It required a viewport to function.

Maybe using headless mode help. But i imagine the owner of this repo probably though about it already and found out it's more work than it's worth. For now the workaround is simply having 2 screen and just put the focus to other program without minimize the window.