JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
https://pytubefix.readthedocs.io
MIT License
722 stars 100 forks source link

Add "--noauth" option #308

Closed warmonkey closed 2 weeks ago

warmonkey commented 2 weeks ago

Changed default behaviour to use_oauth=True, allow_oauth_cache=True. Use --noauth to set use_oauth=False More user friendly for CLI access

JuanBindez commented 2 weeks ago

Hi, I appreciate the initiative, but it should be the opposite of that, otherwise every time the user downloads any video they will be asked for authentication without the need, let's do it like this and add --auth in case the person wants or needs to do it authentication

warmonkey commented 2 weeks ago

Hi. The consideration is usually people just do oauth once.

  1. ordinary users can use oauth if nothing specified, by default the program reuse existing oauth token (allow_oauth_cache=True)
  2. users intentionally disable authentication or in pure cli environment can apply --noauth explicitly.
JuanBindez commented 2 weeks ago

see, we will test when I release a test version