Compare commits

...

3 commits

4 changed files with 8 additions and 3 deletions

View file

@ -5,7 +5,7 @@ i3ipc==1.6.0
ifaddr==0.1.4
ipaddress==1.0.22
psutil==5.4.7
pulsectl==18.8.0
pulsectl>=23.5.2<24
pyinotify==0.9.6
python-mpd2>=3.0.0<4
python-uinput==0.11.2

View file

@ -2,3 +2,6 @@ coloredlogs>=10.0<11
progressbar2>=3.47.0<4
yt-dlp>=2021.10.22
ConfigArgParse>=1.5<2
asyncinotify
ffmpeg
r128gain

View file

@ -209,7 +209,7 @@ class RVElement:
def duration(self) -> int:
assert self.is_video
assert self.ytdl_infos
return self.ytdl_infos["duration"]
return int(self.ytdl_infos["duration"])
@property
def is_video(self) -> bool:

View file

@ -170,7 +170,7 @@ Input arguments:
send("QUIT") # TODO Can loop if QUIT fails
sys.exit(1)
def send(command: str) -> None:
def _send(command: str) -> None:
if not args.quiet:
print(colorama.Fore.BLUE + f"> {command}" + colorama.Fore.RESET)
@ -182,6 +182,8 @@ Input arguments:
p.stdin.write(cmd)
p.stdin.flush()
def send(command: str) -> None:
_send(command)
recv()
# Transmission