diff options
author | MinePlayersPE <mineplayerspealt@gmail.com> | 2021-11-28 19:29:55 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 17:59:55 +0530 |
commit | d298d33fe6ce410fcff5d936798486855b48c9ec (patch) | |
tree | 16c11a72dbcef1202ea374846698a4fc20670271 | |
parent | bf57cfa8b7a64f5b8382fa17a74af8b9aa2ffa55 (diff) | |
download | hypervideo-pre-d298d33fe6ce410fcff5d936798486855b48c9ec.tar.lz hypervideo-pre-d298d33fe6ce410fcff5d936798486855b48c9ec.tar.xz hypervideo-pre-d298d33fe6ce410fcff5d936798486855b48c9ec.zip |
[Instagram] Display more login errors (#1822)
Authored by: MinePlayersPE
-rw-r--r-- | yt_dlp/extractor/instagram.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.py index 1fcf97a19..dcd077bc0 100644 --- a/yt_dlp/extractor/instagram.py +++ b/yt_dlp/extractor/instagram.py @@ -63,6 +63,10 @@ class InstagramBaseIE(InfoExtractor): if not login.get('authenticated'): if login.get('message'): raise ExtractorError(f'Unable to login: {login["message"]}') + elif login.get('user'): + raise ExtractorError('Unable to login: Sorry, your password was incorrect. Please double-check your password.', expected=True) + elif login.get('user') is False: + raise ExtractorError('Unable to login: The username you entered doesn\'t belong to an account. Please check your username and try again.', expected=True) raise ExtractorError('Unable to login') InstagramBaseIE._IS_LOGGED_IN = True |