From c878a90be1f27e5e208f1060396cf0b613214406 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sun, 1 Aug 2021 14:27:45 +0200 Subject: [PATCH] removed .cue "range" workaround --- bin/mpdevil | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/mpdevil b/bin/mpdevil index a137684..42d43b5 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -505,10 +505,6 @@ class ClientHelper(): "date": "", "genre": "" } - if "range" in song: # translate .cue 'range' to 'duration' if needed (unneeded since MPD 0.22.4) - start, end=song["range"].split("-") - if start != "" and end != "": - base_song["duration"]=str((float(end)-float(start))) base_song.update(song) base_song["human_duration"]=ClientHelper.seconds_to_display_time(int(float(base_song["duration"]))) for tag in ("disc", "track"): # remove confusing multiple tags