mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Refactor reimport fresh fields: consolidate REIMPORT_FRESH_FIELDS_ITEM and REIMPORT_FRESH_FIELDS_ALBUM definitions
This commit is contained in:
parent
6c06f2a77e
commit
87874952fa
1 changed files with 2 additions and 5 deletions
|
|
@ -51,20 +51,17 @@ SINGLE_ARTIST_THRESH = 0.25
|
|||
# def extend_reimport_fresh_fields_item():
|
||||
# importer.REIMPORT_FRESH_FIELDS_ITEM.extend(['tidal_track_popularity']
|
||||
# )
|
||||
REIMPORT_FRESH_FIELDS_ALBUM = [
|
||||
REIMPORT_FRESH_FIELDS_ITEM = [
|
||||
"data_source",
|
||||
"bandcamp_album_id",
|
||||
"spotify_album_id",
|
||||
"deezer_album_id",
|
||||
"beatport_album_id",
|
||||
"tidal_album_id",
|
||||
"media",
|
||||
"releasegroup_id",
|
||||
"data_url",
|
||||
]
|
||||
REIMPORT_FRESH_FIELDS_ITEM = [
|
||||
field for field in REIMPORT_FRESH_FIELDS_ALBUM if field != "media"
|
||||
]
|
||||
REIMPORT_FRESH_FIELDS_ALBUM = [*REIMPORT_FRESH_FIELDS_ITEM, "media"]
|
||||
|
||||
# Global logger.
|
||||
log = logging.getLogger("beets")
|
||||
|
|
|
|||
Loading…
Reference in a new issue