# Beets imports everything under Compilations directory

**URL:** <https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693>\
**Category:** Help\
**Created:** [February 14, 2021, 3:26pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693 "2021-02-14T15:26:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfarljm](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mcfarljm](https://discourse.beets.io/u/mcfarljm)\
**Post date:** [February 14, 2021, 3:26pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693/1 "2021-02-14T15:26:45Z")

</div>

Hi, I’m am just getting started and am having trouble with the initial import. When I import an existing directory of files, beets puts everything under a flat directory structure that looks like:

```auto
Compilations/Back In Black/

```

All tracks appear under this single directory, even though I have for the most part standard albums, not compilations. As far as I can tell, “Back In Black” may have gotten used as the sole album title because it comes from one of the first artists, AC/DC.

Judging from `beet info`, most of my existing tracks do have compete tags, with albumartist, artist, album, track info, etc. And beets does seem to be aware of this information, based on the output I get from `beet ls` after importing.

Maybe I’m missing some additional configuration that I need prior to importing? I’m not sure if it matters, but my source tracks are initially contained in a flat directory structure prior to importing.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 14, 2021, 4:13pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693/2 "2021-02-14T16:13:33Z")

</div>

That certainly is odd! All of your albums are getting filed under a single directory? Weird!

It might be useful to include your configuration and something about how you imported the files—it seems like something likely went wrong at that point. You can also try `beet ls -a` to see how many “albums” the beets database currently knows about.

---

<div class="post-metadata">

**Author:** ![mcfarljm](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mcfarljm](https://discourse.beets.io/u/mcfarljm)\
**Post date:** [February 14, 2021, 4:30pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693/3 "2021-02-14T16:30:09Z")

</div>

Thanks for the reply! My configuration is:

```auto
directory: ~/Music/beets
import:
  move: yes
  write: no
plugins: info

```

My initial import was:

```auto
beet import -A /path/to/source-directory

```

Interestingly, `beet ls -a` does indicate that something is up:

```auto
$ beet ls -a
Various Artists - Back In Black

```

But at the same time, beet does seem to be aware of the complete album and artist info for most of my files:

```auto
$ beet ls | head -n 5
AC/DC - Back In Black - Hells Bells
AC/DC - Back In Black - Shoot to Thrill
AC/DC - Back In Black - What Do You Do for Money Honey
AC/DC - Back In Black - Givin the Dog a Bone
AC/DC - Back In Black - Let Me Put My Love Into You

```

and

```auto
$ beet ls | tail -n 5
Van Halen - Best of Van Halen, Vol. 1 - Why Can't This Be Love
Van Halen - Best of Van Halen, Vol. 1 - Dreams
Van Halen - Best of Van Halen, Vol. 1 - When It's Love
Van Halen - Best of Van Halen, Vol. 1 - Poundcake
Walter Trout - Unspoiled by Progress - 20th Anniversary - Marie's Mood

```

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 14, 2021, 4:56pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693/4 "2021-02-14T16:56:20Z")

</div>

Got it. I notice you mentioned:

> [@mcfarljm](#):
>
> I’m not sure if it matters, but my source tracks are initially contained in a flat directory structure prior to importing.

And yep, that does matter. The autotagger guide explains more:  
[https://beets.readthedocs.io/en/stable/guides/tagger.html#overview](https://beets.readthedocs.io/en/stable/guides/tagger.html#overview)

…and also mentions the `--group-albums` option, which you might be interested in.

---

<div class="post-metadata">

**Author:** ![mcfarljm](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mcfarljm](https://discourse.beets.io/u/mcfarljm)\
**Post date:** [February 14, 2021, 5:17pm UTC](https://discourse.beets.io/t/beets-imports-everything-under-compilations-directory/1693/5 "2021-02-14T17:17:28Z")

</div>

Yep, that did it. Thanks!
