From 73f8edd116b558e581b5469dbce12371a45aa0dd Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 27 Jun 2019 22:44:57 -0400 Subject: [PATCH] Simplify force check (#3318) --- beetsplug/absubmit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beetsplug/absubmit.py b/beetsplug/absubmit.py index baff922e4..69c4d2a98 100644 --- a/beetsplug/absubmit.py +++ b/beetsplug/absubmit.py @@ -133,12 +133,12 @@ only files which would be processed' def _get_analysis(self, item): mbid = item['mb_trackid'] - # If file has no mbid skip it. + # Avoid re-analyzing files that already have AB data. if not self.opts.force_refetch and not self.config['force']: - mood_str = item.get(PROBE_FIELD, u'') - if mood_str: + if item.get(PROBE_FIELD): return None + # If file has no MBID, skip it. if not mbid: self._log.info(u'Not analysing {}, missing ' u'musicbrainz track id.', item)