mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
simplified getting file type
This commit is contained in:
parent
4245d49e95
commit
343a1d23dd
@ -2807,8 +2807,8 @@ class AudioType(Gtk.Button):
|
|||||||
def refresh(self, *args):
|
def refresh(self, *args):
|
||||||
try:
|
try:
|
||||||
self.enable()
|
self.enable()
|
||||||
|
file_type=self.client.currentsong()["file"].split('.')[-1]
|
||||||
status=self.client.status()
|
status=self.client.status()
|
||||||
file_type=self.client.playlistinfo(status["song"])[0]["file"].split('.')[-1]
|
|
||||||
freq, res, chan=status["audio"].split(':')
|
freq, res, chan=status["audio"].split(':')
|
||||||
freq=str(float(freq)/1000)
|
freq=str(float(freq)/1000)
|
||||||
brate=status["bitrate"]
|
brate=status["bitrate"]
|
||||||
|
Loading…
Reference in New Issue
Block a user