# Smart Playlist - last import

**URL:** <https://discourse.beets.io/t/smart-playlist-last-import/1961>\
**Category:** Help\
**Created:** [December 18, 2021, 11:04pm UTC](https://discourse.beets.io/t/smart-playlist-last-import/1961 "2021-12-18T23:04:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nousername](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nousername](https://discourse.beets.io/u/nousername)\
**Post date:** [December 18, 2021, 11:04pm UTC](https://discourse.beets.io/t/smart-playlist-last-import/1961/1 "2021-12-18T23:04:05Z")

</div>

How do i use the smart playlist plugin to create a playlist based on the most recently added tracks?

---

<div class="post-metadata">

**Author:** ![planetearth](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@planetearth](https://discourse.beets.io/u/planetearth)\
**Post date:** [September 20, 2022, 1:43pm UTC](https://discourse.beets.io/t/smart-playlist-last-import/1961/2 "2022-09-20T13:43:03Z")

</div>

You could use `'added:-5d..'` in the queries to add tracks that were added in the last 5 days. I suggest you experiment with the [queries](https://beets.readthedocs.io/en/stable/reference/query.html) to get the desired results before you create a playlist.
