Looking a little closer, the plugin does reset fields on the `write` event, 
meaning that it will take action any chance. That seems like a strange choice, 
but that’s how it is!

Maybe we should consider changing the plugin—or replacing it with something 
more flexible—so it only takes action on import. That would seem more 
predictable to me.

Adrian


> On Jan 6, 2017, at 4:33 AM, Pierre Rust <[email protected]> wrote:
> 
> Hi,
> 
> I've been trying to use the zero plugin to remove the genre tag when 
> importing albums, I'm using the following configuration : 
> 
> zero:
>     # always reset the genre tag when importing
>     fields: genre
>     update_database: true
> 
> Additionally, I'm using the following path configuration to have all newly 
> imported albums in a specific directory : 
> 
> paths:
>     genre::^$: __New Imports__/$albumartist/$year - 
> $album%aunique{}/$track-$title
>     default: $genre/$albumartist/$year - $album%aunique{}/$track-$title
> 
> However, it does not work as I expected : 
> * when importing, the genre is not reset and the album ends up a directory 
> matching the genre it had before import.
> * when using beet modify afterward to set the genre correctly, the genre I 
> use in my modify command is not set, instead the genre tag is removed and and 
> the album is moved to the __New Imports__ directory !
>  beet modify -a path:"/home/pierre/DataDrive/MusicTri/__New Imports__/La 
> Rumeur"  genre="Hip Hop Rap R&B"
> 
> Is that how the zero plugin is supposed to work ? should it reset the tag on 
> import (is which case there might be a bug) or only when modifying ?
> 
> regards,
> 
> Pierre
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "beets" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to