# Smart playlist samples and a possibly complex query

**URL:** <https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772>\
**Category:** Help\
**Created:** [May 29, 2019, 1:13pm UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772 "2019-05-29T13:13:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galorin](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Galorin](https://discourse.beets.io/u/Galorin)\
**Post date:** [May 29, 2019, 1:13pm UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/1 "2019-05-29T13:13:12Z")

</div>

I’ve been using Beets to organise my library, but now I want to start generating dynamic playlists. I’ve already managed to do do decade-based smart playlists, based on what’s in the docs. I have a few questions.

1. Have you got any really cool smart playlists set up? I’m looking for stuff that pushes the boundaries, stuff not expressly talked about in the docs, but use all the query tools available.

2. How can I make one smart playlist for every distinct albumartist in my library?

3. Would I do the same to create a smartplaylist for each individual genre from lastgenre?

---

<div class="post-metadata">

**Author:** ![fortes](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/fortes/32/8_2.png) [@fortes](https://discourse.beets.io/u/fortes)\
**Post date:** [May 29, 2019, 7:26pm UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/2 "2019-05-29T19:26:18Z")

</div>

> [@Galorin](#):
>
> - Have you got any really cool smart playlists set up? I’m looking for stuff that pushes the boundaries, stuff not expressly talked about in the docs, but use all the query tools available.

Not sure how “cool” it is, but here are a few of mine:

```auto
smartplaylist:
  auto: false
  playlist_dir: /music/playlists
  relative_to: /music/playlists
  playlists:
    - name: this_year.m3u
      album_query: 'original_year:2019 added-'
    - name: pitchfork_bnm.m3u
      album_query:
        - 'pitchfork_bnm:true added-'
    - name: pitchfork_highly_rated.m3u
      album_query:
        - 'pitchfork_score::.+ pitchfork_score:7.. added-'
    - name: portugues_moderno.m3u
      album_query:
        - 'label:enchufada original_year+'
        - 'label:príncipe'
        - 'label:nortesul'
    - name: recently_added.m3u
      album_query:
      - 'added- added:-2w..'

```

---

<div class="post-metadata">

**Author:** ![Galorin](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Galorin](https://discourse.beets.io/u/Galorin)\
**Post date:** [May 31, 2019, 11:08am UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/3 "2019-05-31T11:08:27Z")

</div>

I had not seen Pitchfork before. That looks like a cool addition.

---

<div class="post-metadata">

**Author:** ![pwr](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/pwr/32/245_2.png) [@pwr](https://discourse.beets.io/u/pwr)\
**Post date:** [June 3, 2019, 2:57am UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/4 "2019-06-03T02:57:35Z")

</div>

Do you add the `pitchfork` tags manually, or is there a cool plugin I don’t know about?

---

<div class="post-metadata">

**Author:** ![fortes](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/fortes/32/8_2.png) [@fortes](https://discourse.beets.io/u/fortes)\
**Post date:** [June 3, 2019, 6:00am UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/5 "2019-06-03T06:00:15Z")

</div>

I wrote a [beets-pitchfork](https://github.com/fortes/beets-pitchfork/) plugin to do all the tagging

---

<div class="post-metadata">

**Author:** ![pwr](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/pwr/32/245_2.png) [@pwr](https://discourse.beets.io/u/pwr)\
**Post date:** [June 3, 2019, 8:52am UTC](https://discourse.beets.io/t/smart-playlist-samples-and-a-possibly-complex-query/772/6 "2019-06-03T08:52:15Z")

</div>

Everyday I’m amazed by something else in beets
