harrypython / itsagramlive

It's A Gram Live is a Python script that create a Instagram Live and provide you a rtmp server and stream key to streaming using sofwares like OBS-Studio.
GNU General Public License v3.0
175 stars 51 forks source link

Problem saving replay to story #25

Closed gotagautier closed 4 years ago

gotagautier commented 4 years ago

I use Itsagramlive for about 5 months now and work perfectly until a couple weeks ago. Now when I finish a live (I use OBS) I type STOP in the command and then press the Y key to save the replay to story, but the CMD show me the following error:

When I press ctrl + C (to stop the script) it say the following lines:

Traceback (most recent call last): File "c:\Python3\lib\site-packages\ItsAGramLive\ItsAGramLive.py", line 183, in send_request self.LastJson = json.loads(self.LastResponse.text) File "c:\Python3\lib\json__init__.py", line 357, in loads return _default_decoder.decode(s) File "c:\Python3\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\Python3\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\python3\IG\valparaisoprofundo.py", line 11, in live.start() File "c:\Python3\lib\site-packages\ItsAGramLive\ItsAGramLive.py", line 248, in start self.stop() File "c:\Python3\lib\site-packages\ItsAGramLive\ItsAGramLive.py", line 425, in stop self.add_to_post_live() File "c:\Python3\lib\site-packages\ItsAGramLive\ItsAGramLive.py", line 407, in add_to_post_live if self.send_request(endpoint='live/{}/add_to_post_live/'.format(self.broadcast_id), File "c:\Python3\lib\site-packages\ItsAGramLive\ItsAGramLive.py", line 188, in send_request time.sleep(60) KeyboardInterrupt ^C

Theres any fix to this? It start happens a couple weeks ago I use an HP ProBook 640 G2 (i7 6600U / 12GB RAM DDR4 1333MHz / integrated graphics / Samsung EVO750 SSD) with the latest version of OBS and python3

harrypython commented 4 years ago

Looks like Instagram remove the feature share a live video to stories.

The error is a 404 (not found) when the script tries to save on stories.

I'll wait for a couple of weeks to confirm if it's really this problem.

gotagautier commented 4 years ago

Looks like Instagram remove the feature share a live video to stories.

The error is a 404 (not found) when the script tries to save on stories.

I'll wait for a couple of weeks to confirm if it's really this problem.

Thanks! I really appreciate your work. I work with an ONG doing free interviews and concerts to instagram so its really useful

edusachs commented 4 years ago

Looks like Instagram remove the feature share a live video to stories.

The error is a 404 (not found) when the script tries to save on stories.

I'll wait for a couple of weeks to confirm if it's really this problem.

Hi... many people have the same problem, in other implementations and softwares.

The Instagram disabled the feature for save Lives in stories.

Now, is different... You need to save the Lives in a video of IGTV.

Look at this thread: https://github.com/dilame/instagram-private-api/issues/1304

Can you fix your software for save the Lives in IGTV?

Thanks

harrypython commented 4 years ago

New version guys!

Thank you for the help @edusachs

@gotagautier please, let me know if it's working.