Skip to content

Commit fd4d65a

Browse files
committed
- Updated requirements.txt
- Now we check that the computer is connected to the network before starting.
1 parent af0aafe commit fd4d65a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

mkchromecast.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88
from mkchromecast.terminate import *
99
import atexit
1010

11+
12+
cc = casting()
13+
14+
if cc.ip == '127.0.0.1' or None: # We verify the local IP.
15+
print ('Your computer is not connected to any network')
16+
terminate()
17+
1118
print('Switching to soundflower')
19+
1220
inputdev()
1321
outputdev()
1422
stream()
15-
cc = casting()
1623
cc.initialize_cast()
1724
cc.get_cc()
1825
cc.play_cast()

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mutagen == 1.31
12
psutil == 4.1.0
23
PyChromecast == 0.7.2
3-
mutagen == 1.31
4+
setuptools == 19.4

0 commit comments

Comments
 (0)