Skip to content

Commit

Permalink
Ncspot Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
M1ndo committed Jun 16, 2024
1 parent 237748d commit a750e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "richspot"
description = "ncspot discord rich presence"
version = "1.0.2"
version = "1.0.3"
keywords = ["Spotify", "Spotify Rich Presence", "Rich Presence", "Ncspot", "Ncspot Rich Presence", "Discord", "Discord Rich Presence", "Spotify Connect"]
authors = [
{ name = "Younes Ben El", email = "[email protected]" }
Expand Down
4 changes: 2 additions & 2 deletions richspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from pypresence import Presence
from pathlib import Path
import requests, datetime, json
import socket, base64
import socket, base64, os

config_file = Path("~/.config/richspot.json").expanduser()
pods_file = Path("~/.config/richspot_pods.json").expanduser()
socket_file = Path("~/.cache/ncspot/ncspot.sock").expanduser().as_posix()
socket_file = Path(f"/run/user/{os.getuid()}/ncspot/ncspot.sock").expanduser().as_posix()

if not config_file.exists():
config_file.touch()
Expand Down

0 comments on commit a750e77

Please sign in to comment.