{"action":"created","issue":{"url":"https://api.github.com/repos/beetbox/beets/issues/2968","repository_url":"https://api.github.com/repos/beetbox/beets","labels_url":"https://api.github.com/repos/beetbox/beets/issues/2968/labels{/name}","comments_url":"https://api.github.com/repos/beetbox/beets/issues/2968/comments","events_url":"https://api.github.com/repos/beetbox/beets/issues/2968/events","html_url":"https://github.com/beetbox/beets/issues/2968","id":335906665,"node_id":"MDU6SXNzdWUzMzU5MDY2NjU=","number":2968,"title":"Is it possible to overwrite files?","user":{"login":"xpelican","id":25250201,"node_id":"MDQ6VXNlcjI1MjUwMjAx","avatar_url":"https://avatars2.githubusercontent.com/u/25250201?v=4","gravatar_id":"","url":"https://api.github.com/users/xpelican","html_url":"https://github.com/xpelican","followers_url":"https://api.github.com/users/xpelican/followers","following_url":"https://api.github.com/users/xpelican/following{/other_user}","gists_url":"https://api.github.com/users/xpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/xpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpelican/subscriptions","organizations_url":"https://api.github.com/users/xpelican/orgs","repos_url":"https://api.github.com/users/xpelican/repos","events_url":"https://api.github.com/users/xpelican/events{/privacy}","received_events_url":"https://api.github.com/users/xpelican/received_events","type":"User","site_admin":false},"labels":[{"id":29900975,"node_id":"MDU6TGFiZWwyOTkwMDk3NQ==","url":"https://api.github.com/repos/beetbox/beets/labels/needinfo","name":"needinfo","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T16:45:48Z","updated_at":"2018-06-26T18:11:07Z","closed_at":null,"author_association":"NONE","body":"Hello, and first of all thank you for creating beets. It is very handy and exactly what I was looking for to take care of my music archive. Brilliant work. I apologize in advance if the following is a stupid question, as I'm guessing this already exists within beets somehow, but I experimented for some time now and couldn't find anything related to this in any of the documentation I could find either.\r\n\r\nI'm currently trying to use beets in an automated bash script focused on mountable external archives, and have it _overwrite_ music files on mounted drives after sorting them with the autotagger,  So, instead of copying/moving files to a different location (such as the host machines disk), I'd like to import them to library only and perform the normal autotagging / renaming operations for each file, but then change the original files with the new, properly named and tagged versions.\r\n\r\nSo far, the only way I could make this happen was around beets through the script I'm building (point beets to the externally mounted filesystem path, save properly formatted files from beets to host machine disk, delete the originals on external device, then move the new files in host machine back to the external device), and I'm wondering if there's somehow already a way to directly overwrite files within beets that I just couldn't figure out.\r\n\r\nAgain, apologies in advance if this is a noob question, and thanks for all your good work!"},"comment":{"url":"https://api.github.com/repos/beetbox/beets/issues/comments/400411388","html_url":"https://github.com/beetbox/beets/issues/2968#issuecomment-400411388","issue_url":"https://api.github.com/repos/beetbox/beets/issues/2968","id":400411388,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDQxMTM4OA==","user":{"login":"sampsyo","id":188033,"node_id":"MDQ6VXNlcjE4ODAzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/188033?v=4","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":"2018-06-26T18:11:07Z","updated_at":"2018-06-26T18:11:07Z","author_association":"MEMBER","body":"Hi! I'm glad you're interested. But I'm having a little trouble understanding exactly what you want. Specifically, I guess I'm not sure how it's different from just enabling the `move` option for the importer and having the source be the same as the destination (i.e., provide the same path to the `import` command as you have configured as your `directory`). Would that do what you want?\r\n\r\nThat's possible, but for what it's worth, we usually recommend against it. The problem is that it becomes hard to tell which music you've imported already and which still needs to be processed. That's why the guides and the defaults suggest that you keep the two separate. I really do suggest giving this a try, and putting the source and destination both on that external disk—once you've imported everything, then you can remove the old folder and go back to having just a single directory of music.\r\n\r\nIf you really want to import things in place, I recommend the following workflow: disable `copy` and `move`, which will just leave the files in place (but still fix their tags). Then, when you're all done, type `beet move` to rename everything all at once. This will help avoid confusing situations where properly-named files coexist with some more disorganized files."}}
{"actor":{"display_login":"sampsyo"}}