We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7beda46 commit 20a70abCopy full SHA for 20a70ab
1 file changed
blitzloop/mpvplayer.py
@@ -134,6 +134,8 @@ def load_song(self, song):
134
if "duration" in song.song:
135
self.duration = float(song.song["duration"])
136
137
+ self.file_duration = self._getprop("length")
138
+
139
ch = self._getprop("audio-params/channel-count")
140
assert ch == 1 or (ch % 2 == 0)
141
self.channels = ((ch + 1) // 2) - 1
0 commit comments