1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[twitter] add 'username-alt' option (#5715)

This commit is contained in:
Mike Fährmann 2024-06-13 00:54:43 +02:00
parent c6fc0281e8
commit c699ce8ebb
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 13 additions and 1 deletions

View File

@ -4105,6 +4105,18 @@ Description
Ignore previously seen Tweets.
extractor.twitter.username-alt
------------------------------
Type
``string``
Description
Alternate Identifier (username, email, phone number)
when `logging in <extractor.*.username & .password_>`__.
When not specified and asked for by Twitter,
this identifier will need to entered in an interactive prompt.
extractor.twitter.users
-----------------------
Type

View File

@ -1854,7 +1854,7 @@ def _login_impl(extr, username, password):
},
}
elif subtask == "LoginEnterAlternateIdentifierSubtask":
alt = extr.input(
alt = extr.config("username_alt") or extr.input(
"Alternate Identifier (username, email, phone number): ")
data = {
"enter_text": {