inline: syntax error in inline field definition:
Traceback (most recent call last):
File "/volume2/@appstore/python/lib/python2.7/site-packages/beetsplug/inline.py", line 91, in compile_inline
func = _compile_func(python_code)
File "/volume2/@appstore/python/lib/python2.7/site-packages/beetsplug/inline.py", line 48, in _compile_func
code = compile(body, 'inline', 'exec')
File "inline", line 2
”(“ + albumtype + “)” if albumtype == 'ep' else ''
^
SyntaxError: invalid syntax
If I use single quotes albumtype_EP: '(' + albumtype + ')' if albumtype == 'ep' else '' I get this error:
configuration error: file /volume2/homes/XXX/beets/config.yaml could not be read: while parsing a block mapping
in "/volume2/homes/XXX/beets/config.yaml", line 15, column 5
expected <block end>, but found '<scalar>'
in "/volume2/homes/XXX/beets/config.yaml", line 15, column 23
Sounds like you got it! For future reference, you’ll want to take care to wrap your Python code in YAML strings. The u prefix avoided the need for that this time.