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

Commit d8887f5

Browse files
committed
issue #26
version 1.4.1
1 parent 8e129a3 commit d8887f5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ItsAGramLive/ItsAGramLive.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,16 @@ def start(self):
242242
print("* Broadcast ID: {}".format(self.broadcast_id))
243243
print("* Server URL: {}".format(self.stream_server))
244244
print("* Server Key: {}".format(self.stream_key))
245-
print("The stream key was automatically copied to your clipboard")
245+
246+
try:
247+
pyperclip.copy(self.stream_key)
248+
print("The stream key was automatically copied to your clipboard")
249+
except pyperclip.PyperclipException as headless_error:
250+
print("Could not find a copy/paste mechanism for your system")
251+
pass
246252

247253
print("Press Enter after your setting your streaming software.")
254+
248255
if self.start_broadcast():
249256
self.is_running = True
250257

@@ -383,8 +390,6 @@ def create_broadcast(self):
383390
self.stream_server = upload_url[0]
384391
self.stream_key = "{}{}".format(str(self.broadcast_id), upload_url[1])
385392

386-
pyperclip.copy(self.stream_key)
387-
388393
return True
389394

390395
else:

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.4',
13+
version='1.4.1',
1414
packages=setuptools.find_packages(),
1515
url='https://github.com/harrypython/itsagramlive',
1616
license='GPL-3.0',

0 commit comments

Comments
 (0)