Skip to content

Commit

Permalink
misc fix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
xuancong84 committed Oct 26, 2023
1 parent cf61bc1 commit 1e190cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def get_default_browser_cookie(platform):

# Configure karaoke process
global K
K = karaoke.Karaoke(args)
os.K = K = karaoke.Karaoke(args)

if (args.developer_mode):
th = threading.Thread(target = K.run)
Expand Down
3 changes: 3 additions & 0 deletions lib/vlcclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def play_file(self, file_path, volume, params = []):
except:
self.process.kill()
command = self.cmd_base + params + [file_path]
if self.platform == 'osx' and not os.K.full_screen:
command.remove('--fullscreen')
command.remove('--macosx-nativefullscreenmode')
logging.info("VLC Command: %s" % command)

self.process = subprocess.Popen(command, stdin = subprocess.PIPE)
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ setuptools
wheel
tempora==1.14.0
jaraco.functools==2.0
CherryPy==10.2.1
CherryPy
six
Flask
pillow
qrcode
pygame; sys_platform != 'darwin'
pygame==2.1.0; sys_platform == 'darwin'
pygame==2.1.3; sys_platform == 'darwin'
futures
psutil
unidecode
Expand All @@ -20,3 +20,5 @@ torch>=1.5.1
tqdm>=4.30
librosa>=0.6.3,<0.9
pip
soundfile
spec_utils

0 comments on commit 1e190cc

Please sign in to comment.