mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 09:33:46 +01:00
Simplify force check (#3318)
This commit is contained in:
parent
0726123e41
commit
73f8edd116
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue