Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
New version 1.3.4
Browse files Browse the repository at this point in the history
Resolves #12 - Infinity Checkpoint,
Resolves #14 - Crashing if you run comments,
  • Loading branch information
harrypython committed May 30, 2020
1 parent 3fcbbc2 commit 4450fbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ItsAGramLive/ItsAGramLive.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,5 +426,8 @@ def stop(self):

def get_comments(self):
if self.send_request("live/{}/get_comment/".format(self.broadcast_id)):
for comment in self.LastJson['comments']:
print(f"{comment['user']['username']} has posted a new comment: {comment['text']}")
if 'comments' in self.LastJson:
for comment in self.LastJson['comments']:
print(f"{comment['user']['username']} has posted a new comment: {comment['text']}")
else:
print("There is no comments.")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name='ItsAGramLive',
version='1.2.3',
version='1.3.4',
packages=setuptools.find_packages(),
url='https://github.com/harrypython/itsagramlive',
license='GPL-3.0',
Expand Down

0 comments on commit 4450fbe

Please sign in to comment.