X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.py;h=d91e150aed51d93d9fa6e7432b2971c3cb05c398;hb=2e4049036ec4d90a9daeff606d821d2ac2d023ce;hp=fd5bd908daf3b81ebe67f9e0b7128d451278e932;hpb=cc008de481bf1b67790d48b648d7c8207b9f50ea;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.py b/music_sampler.py index fd5bd90..d91e150 100644 --- a/music_sampler.py +++ b/music_sampler.py @@ -45,13 +45,12 @@ class PlayList(RelativeLayout): open_files = self.parent.ids['Mapping'].open_files self.playlist = [] for music_file in open_files.values(): - if not music_file.is_playing(): + if not music_file.is_not_stopped(): continue text = "{}/{}".format( helpers.duration_to_min_sec(music_file.sound_position), - helpers.duration_to_min_sec(music_file.sound_duration) - ) + helpers.duration_to_min_sec(music_file.sound_duration)) if music_file.is_paused(): self.playlist.append(["⏸", music_file.name, text, False])