Skip to content

Commit

Permalink
Simplify force check (#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Jun 28, 2019
1 parent 0726123 commit 73f8edd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/absubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ def analyze_submit(self, item):
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)
Expand Down

0 comments on commit 73f8edd

Please sign in to comment.