This repository was archived by the owner on Aug 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 1010
1111setuptools .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' ,
You can’t perform that action at this time.
0 commit comments