YouTube-Viewer icon indicating copy to clipboard operation
YouTube-Viewer copied to clipboard

Add Load Config Timeout

Open yah00078 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

I'm submitting a ...

  • [ ] bug report
  • [X] feature request
  • [ ] support request --> Contact me over mail for support https://github.com/MShawon

Description

Hello, when program starts it ask for use already known configuration until you press enter or input "no" (Line 949 & 951)

I think it could be a good idea to add a timeout for automate script launch (If you don't input nothing, after 30s it launch with found config) or a force yes param.

After some searches found some way to do this, but using an arg or a jsons config for self accepting seems to be easier than code a timeout function for input()

Thank you for all your job ! :-)

Environment

- OS : Linux
- Python : 3.8
- Script version : latest

config.json

Not really needed

yah00078 avatar Jul 23 '22 12:07 yah00078

Adding echo yes | before actual command should work regardless of OS.

Linux echo yes | python3 youtube_viewer.py

Windows echo yes | python youtube_viewer.py

Windows EXE echo yes | youtube_viewer.exe

I might look into timeout in future release however I think echo yes is an excellent option

MShawon avatar Jul 24 '22 07:07 MShawon

Hello, ihmo integrate feature in soft seems to be much cleaner, but you're answer work perfectly :-) When i have time, I'd suggest a pull request to do.

thank you !

yah00078 avatar Jul 24 '22 12:07 yah00078