-
I have a question about how custom album fields can refer to each other when using the Let's look at a minimal example. In my config I could have something like:
When running beets with this config I get a "Name error: 'myfield' not found." This means that in the definition of Now, assuming
However, the function What else does work to share code logic for two fields? Thanks heaps for any suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
I'm don't know about cross-referencing fields, but in your example, you could just use the template function for your format_album: %upper{$myfield} - $album |
Beta Was this translation helpful? Give feedback.
-
You could at least define the function in both places, and copy-paste between the two when one changes. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestions and sorry for my late repsosnse. I guess I have to write this as a little plugin to share the code. |
Beta Was this translation helpful? Give feedback.
-
I finally got around extending the inline plugin: |
Beta Was this translation helpful? Give feedback.
I finally got around extending the inline plugin:
beets-inlineplus
seems to be able to do this. (I'm sure I didn't cover all corner cases -- so feedback is very welcome!)