dvingerh / PyInstaLive

Python script to download Instagram livestreams.
MIT License
547 stars 111 forks source link

PyInstalive shows "Successfully logged into account: None" when logging in #127

Closed fireattack closed 2 years ago

fireattack commented 3 years ago

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

I am using:

To report a bug, fill in the information below.

Required files

pyinstalive_trueselfofficial.log

---------------------------------------------------------------------------
PYINSTALIVE (SCRIPT V3.2.4 - PYTHON V3.8.7) - 09-23-2021 04:31:36 AM
---------------------------------------------------------------------------
Successfully logged into account: None
Cookie file expiry date: 2021-12-22 at 03:26:43 AM
---------------------------------------------------------------------------
Getting info for 'trueself_official_' successful.
---------------------------------------------------------------------------
There are no available livestreams.
---------------------------------------------------------------------------
There are no available replays.
---------------------------------------------------------------------------
PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

G:\_temp\instalive>pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.2.4 - PYTHON V3.8.7) - 09-23-2021 04:31:12 AM
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.2.4
[I] Python version:             3.8.7
[I] FFmpeg framework:           Available
[I] Cookie files:               1 (***.json matches config user)
[I] CLI supports color:         No
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = ***
    password = ***
    download_path = G:\_temp\instalive
    download_lives = True
    download_replays = True
    download_comments = true
    show_cookie_expiry = True
    log_to_file = True
    ffmpeg_path =
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False
    do_heartbeat = True
    proxy =
    verbose = False
    skip_merge = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

Example: pyinstalive -d trueself_official

Behavior

While it can successfully log into the account, it shows "Successfully logged into account: None" instead of the account name. It used to work fine.

Steps to reproduce issue
  1. Login with cookie (or with -u and -p arguments), and try to download anything.
oalieno commented 3 years ago

instagram_private_api is using self.get_cookie_value('ds_user') for the authenticated_user_name value. After the Instagram update, the cookie field ds_user is no longer available. The login should be successful, it just doesn't show the name. If authenticated_user_name is the same as the username we provided, perhaps just displaying the username would be fine.

UnixCro commented 2 years ago

PyInstaLive saves a cookie file in a "username.json" file from your login data.

If PyInstaLive in the standard configuration file or it was passed as a parameter that you want to log in and PyInstaLive has already created a cookie from this account PyInstaLive does not log in again because it is already logged in, hence the message.

Thank you