{"action":"created","issue":{"url":"https://api.github.com/repos/sampsyo/beets/issues/1364","labels_url":"https://api.github.com/repos/sampsyo/beets/issues/1364/labels{/name}","comments_url":"https://api.github.com/repos/sampsyo/beets/issues/1364/comments","events_url":"https://api.github.com/repos/sampsyo/beets/issues/1364/events","html_url":"https://github.com/sampsyo/beets/issues/1364","id":63095843,"number":1364,"title":"Organising classical music","user":{"login":"sondr3","id":2280539,"avatar_url":"https://avatars.githubusercontent.com/u/2280539?v=3","gravatar_id":"","url":"https://api.github.com/users/sondr3","html_url":"https://github.com/sondr3","followers_url":"https://api.github.com/users/sondr3/followers","following_url":"https://api.github.com/users/sondr3/following{/other_user}","gists_url":"https://api.github.com/users/sondr3/gists{/gist_id}","starred_url":"https://api.github.com/users/sondr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondr3/subscriptions","organizations_url":"https://api.github.com/users/sondr3/orgs","repos_url":"https://api.github.com/users/sondr3/repos","events_url":"https://api.github.com/users/sondr3/events{/privacy}","received_events_url":"https://api.github.com/users/sondr3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-19T21:35:50Z","updated_at":"2015-03-20T00:24:33Z","closed_at":"2015-03-19T21:41:58Z","body":"Hey, I'm having some slight troubles keeping my classical music organised. I've been organising most my music with `$albumartist` which works great for everything but classical because you end up with folders named like `Пётр Ильич Чайковский; Koninklijk Concertgebouworkest, Antal Doráti/` when I would only want the composer to be included (`Пётр Ильич Чайковский/`). I tried doing this `%if{$composer,$composer,$albumartist}/` to see if it worked but it stills looks like it gives them `$albumartist` names instead."},"comment":{"url":"https://api.github.com/repos/sampsyo/beets/issues/comments/83822047","html_url":"https://github.com/sampsyo/beets/issues/1364#issuecomment-83822047","issue_url":"https://api.github.com/repos/sampsyo/beets/issues/1364","id":83822047,"user":{"login":"sampsyo","id":188033,"avatar_url":"https://avatars.githubusercontent.com/u/188033?v=3","gravatar_id":"","url":"https://api.github.com/users/sampsyo","html_url":"https://github.com/sampsyo","followers_url":"https://api.github.com/users/sampsyo/followers","following_url":"https://api.github.com/users/sampsyo/following{/other_user}","gists_url":"https://api.github.com/users/sampsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/sampsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampsyo/subscriptions","organizations_url":"https://api.github.com/users/sampsyo/orgs","repos_url":"https://api.github.com/users/sampsyo/repos","events_url":"https://api.github.com/users/sampsyo/events{/privacy}","received_events_url":"https://api.github.com/users/sampsyo/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T00:24:33Z","updated_at":"2015-03-20T00:24:33Z","body":"`len(albumartist) >= 1` just means you have at least one *character* in the artist string. Maybe you want:\r\n\r\n    parts = albumartist.split(';', 1)\r\n    if len(parts) > 1:\r\n        return parts[1]\r\n    else:\r\n        return ''"}}