mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
refetching works moved to new PR
This commit is contained in:
parent
9c3c538dfb
commit
eacdb0d0e4
1 changed files with 1 additions and 5 deletions
|
|
@ -168,17 +168,13 @@ https://musicbrainz.org/work/{}', item, work_info['work']['id'])
|
|||
self._log.info('No work for {}, \
|
||||
add one at https://musicbrainz.org/recording/{}', item, item.mb_trackid)
|
||||
return
|
||||
workcorrect=True
|
||||
if hasattr(item, 'mb_workid_current'):
|
||||
workcorrect=item.mb_workid_current==item.mb_workid
|
||||
if force or (not hasparent) or (not workcorrect):
|
||||
if force or (not hasparent):
|
||||
try:
|
||||
work_info, work_date = find_parentwork_info(item.mb_workid)
|
||||
except musicbrainzngs.musicbrainz.WebServiceError as e:
|
||||
self._log.debug("error fetching work: {}", e)
|
||||
return
|
||||
parent_info = self.get_info(item, work_info)
|
||||
parent_info['mb_workid_current']=item.mb_workid
|
||||
if 'parent_composer' in parent_info:
|
||||
self._log.debug("Work fetched: {} - {}",
|
||||
parent_info['parentwork'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue