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

Commit 4450fbe

Browse files
committed
New version 1.3.4
Resolves #12 - Infinity Checkpoint, Resolves #14 - Crashing if you run comments,
1 parent 3fcbbc2 commit 4450fbe

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

ItsAGramLive/ItsAGramLive.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,8 @@ def stop(self):
426426

427427
def get_comments(self):
428428
if self.send_request("live/{}/get_comment/".format(self.broadcast_id)):
429-
for comment in self.LastJson['comments']:
430-
print(f"{comment['user']['username']} has posted a new comment: {comment['text']}")
429+
if 'comments' in self.LastJson:
430+
for comment in self.LastJson['comments']:
431+
print(f"{comment['user']['username']} has posted a new comment: {comment['text']}")
432+
else:
433+
print("There is no comments.")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name='ItsAGramLive',
13-
version='1.2.3',
13+
version='1.3.4',
1414
packages=setuptools.find_packages(),
1515
url='https://github.com/harrypython/itsagramlive',
1616
license='GPL-3.0',

0 commit comments

Comments
 (0)