Skip to content
Discussion options

You must be logged in to vote

You all are awesome! That was exactly the creative ideas I was missing. In the end I used @wisp3rwind's idea #4784 (comment) but I'm sure a oneliner like @govynnus suggested #4784 (comment) would have worked as well.

This is what I did:

album level inline field:

    item_data_source: |
        for item in items:
            if item.get('data_source'):
                return f'{item.data_source}'

Fix:

$ beet mod -a data_source='$item_data_source' album::'.+' data_source::^$ item_data_source:MusicBrainz

$ beet mod -a data_source='$item_data_source' album::'.+' data_source::^$ item_data_source:Discogs

Replies: 4 comments 2 replies

Comment options

JOJ0
May 9, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arsaboo
Comment options

Comment options

JOJ0
May 10, 2023
Maintainer Author

You must be logged in to vote
1 reply
@JOJ0
Comment options

JOJ0 May 10, 2023
Maintainer Author

Answer selected by JOJ0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants