Import large library? #324
-
|
Hi everyone! I'm playing around with Moe after getting burned a bit by beets and have a quick question: is there a way to import a large library all at once? Based on the docs, it appears
I can understand why this behavior would be the way it is, but it makes it difficult to import an already existent library (eg my old beets library). Ideally I'd like to do something like: and have moe automatically import any tracks that don't already exist in my moe library. Is this possible in the current implementation? I could always wire up a script with the Python API, but I wanted to check in here first. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It's certainly a good question. An important distinction though that makes this somewhat possible is that
Assuming your library follows a |
Beta Was this translation helpful? Give feedback.
It's certainly a good question. An important distinction though that makes this somewhat possible is that
moe addcan take any number of paths as arguments. This means that the best way to do what you're asking is to take advantage of your shell's features for listing out multiple paths and pipe that into moe. For example, with bash you can do something like:find /path/to/your/library -mindepth 2 -maxdepth 2 -type d -print0 | xargs -0 moe addAssuming your library follows a
library/artist/albumdirectory structure. Here's also a relevant discussion about recursively adding albums for more on why adding a whole library directory with nested albums in a single path isn't supported.