From ce3c9670138f6a91a8c1b71ebecb2a0f89a58331 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 5 Feb 2021 14:08:18 +0100 Subject: [PATCH] Fixed crashes with untagged title (closes #40) --- doc/Changelog | 6 ++++++ sima/info.py | 2 +- sima/lib/plugin.py | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 7b4efd2..fb506c5 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,9 @@ +MPD_sima v0.16.2.dev0 + + * Fixed issue with un-tagged titles (closes #40) + + -- kaliko UNRELEASED + MPD_sima v0.16.1 * tags plugin: Add album queue mode diff --git a/sima/info.py b/sima/info.py index 59c547e..4e10e34 100644 --- a/sima/info.py +++ b/sima/info.py @@ -12,7 +12,7 @@ short. """ -__version__ = '0.16.1' +__version__ = '0.16.2.dev0' __author__ = 'kaliko' __email__ = 'kaliko@azylum.org' __url__ = 'git://git.kaliko.me/sima.git' diff --git a/sima/lib/plugin.py b/sima/lib/plugin.py index 58a0e57..a5db626 100644 --- a/sima/lib/plugin.py +++ b/sima/lib/plugin.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013-2015, 2020 kaliko +# Copyright (c) 2013-2015, 2020-2021 kaliko # # This file is part of sima # @@ -157,7 +157,8 @@ class AdvancedPlugin(Plugin): :param {Artist} alist: Artist objects list/container """ - queued_artist = MetaContainer([Artist(_.artist) for _ in self.player.queue]) + queued_artist = MetaContainer([Artist(_.artist) for _ in + self.player.queue if _.artist]) not_queued_artist = alist - queued_artist duration = self.main_conf.getint('sima', 'history_duration') hist = [] -- 2.39.5