Compare commits
3 commits
5ab08a4f77
...
eba894d9f4
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | eba894d9f4 | ||
Geoffrey Frogeye | 6c249a452f | ||
Geoffrey Frogeye | 75d8c15def |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue