Skip to content

Commit

Permalink
Fix wrong dependency (daemon instead of python-daemon) and change of …
Browse files Browse the repository at this point in the history
…the lockfile name.
  • Loading branch information
ciembor committed Dec 24, 2023
1 parent 428307a commit 05909c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 💚 spotify-cmd v0.1.2
# 💚 spotify-cmd v0.1.3

`spotify-cmd` is a Spotify client that allows controlling the playback of **albums and playlists from a user's library** (based on names or Spotify URIs) and individual tracks (based solely on Spotify URIs). The application is intended for use with [spotifyd](https://github.com/Spotifyd/spotifyd), but it works with any Spotify-enabled device.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

setup(
name="spotify-cmd",
version="0.1.2",
version="0.1.3",
packages=find_packages(),
install_requires=[
'argparse==1.4.0',
'configparser==5.0.2',
'spotipy==2.23.0',
'daemon==1.2'
'python-daemon==3.0.1'
],
entry_points={
'console_scripts': [
Expand Down
4 changes: 2 additions & 2 deletions src/spotify_cmd_daemon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def run_server(server):
spotify = SpotifyController()
server = SocketServer(spotify)

lock_file = "/tmp/myapp.lock"
lock_file = "/tmp/spotify-cmd-daemon.lock"
if os.path.exists(lock_file):
print("Application already running.")
print(f"Daemon already running ({lock_file} exists).")
sys.exit(1)
else:
with open(lock_file, 'w'): pass
Expand Down

0 comments on commit 05909c5

Please sign in to comment.