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):
242
242
print ("* Broadcast ID: {}" .format (self .broadcast_id ))
243
243
print ("* Server URL: {}" .format (self .stream_server ))
244
244
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
246
252
247
253
print ("Press Enter after your setting your streaming software." )
254
+
248
255
if self .start_broadcast ():
249
256
self .is_running = True
250
257
@@ -383,8 +390,6 @@ def create_broadcast(self):
383
390
self .stream_server = upload_url [0 ]
384
391
self .stream_key = "{}{}" .format (str (self .broadcast_id ), upload_url [1 ])
385
392
386
- pyperclip .copy (self .stream_key )
387
-
388
393
return True
389
394
390
395
else :
Original file line number Diff line number Diff line change 10
10
11
11
setuptools .setup (
12
12
name = 'ItsAGramLive' ,
13
- version = '1.4' ,
13
+ version = '1.4.1 ' ,
14
14
packages = setuptools .find_packages (),
15
15
url = 'https://github.com/harrypython/itsagramlive' ,
16
16
license = 'GPL-3.0' ,
You can’t perform that action at this time.
0 commit comments