# Rate Sort Delete

**URL:** <https://discourse.beets.io/t/rate-sort-delete/330>\
**Category:** Help\
**Created:** [April 17, 2018, 6:49am UTC](https://discourse.beets.io/t/rate-sort-delete/330 "2018-04-17T06:49:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jungo](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jungo](https://discourse.beets.io/u/Jungo)\
**Post date:** [April 17, 2018, 6:49am UTC](https://discourse.beets.io/t/rate-sort-delete/330/1 "2018-04-17T06:49:40Z")

</div>

Hi! I want ask community a little question! Can i play delete and rate music on the fly with this product? I want sort 300 Gb of music, and in searching of best product for it. Please advice me yes or no. Thank you! Have a nice day!

---

<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:** [April 17, 2018, 11:37am UTC](https://discourse.beets.io/t/rate-sort-delete/330/2 "2018-04-17T11:37:37Z")

</div>

What a strange question! Can you elaborate at all about what exactly you’d like beets to do? Maybe tell us a story with examples?

---

<div class="post-metadata">

**Author:** ![Jungo](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jungo](https://discourse.beets.io/u/Jungo)\
**Post date:** [April 17, 2018, 11:54am UTC](https://discourse.beets.io/t/rate-sort-delete/330/3 "2018-04-17T11:54:58Z")

</div>

Thank you for your fast response!  
I always sorted the music with winamp and mediamonkey  
I’ve been working on linux for last years and want to find a convenient replacement  
Need on the fly at listening comfortably to give a rating to tracks, to delete them from a disk and in the future to put tracks in order in the hierarchy of folders

probably I’d better look in the direction of gui players, and beets use for tags and file names?

---

<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:** [April 17, 2018, 5:39pm UTC](https://discourse.beets.io/t/rate-sort-delete/330/4 "2018-04-17T17:39:37Z")

</div>

Yep! That’s what I’d do—beets is really a library organizer, not a player. It plays nicely with other music players.

---

<div class="post-metadata">

**Author:** ![rxw](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rxw/32/122_2.png) [@rxw](https://discourse.beets.io/u/rxw)\
**Post date:** [April 17, 2018, 6:46pm UTC](https://discourse.beets.io/t/rate-sort-delete/330/5 "2018-04-17T18:46:53Z")

</div>

As beets and mpd/mpc is a good match, I’d use [mpdfavd](https://github.com/vincent-petithory/mpdfav) and some simple shell script. With mpc you can get the full file path to what you’re listening to, so it’s easy to delete. And as it is annoying to open some terminal for every rate/delete, I’d bind some keyboard shortcuts to my window manager so, e. g. I would press F1 to rate it and F9 to delete it. So you can do real work while procrastinating.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![Jungo](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jungo](https://discourse.beets.io/u/Jungo)\
**Post date:** [April 18, 2018, 8:15am UTC](https://discourse.beets.io/t/rate-sort-delete/330/6 "2018-04-18T08:15:51Z")

</div>

cool! sounds nice! i’m newbe in programming, will try to resolve it

---

<div class="post-metadata">

**Author:** ![rxw](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/rxw/32/122_2.png) [@rxw](https://discourse.beets.io/u/rxw)\
**Post date:** [April 18, 2018, 10:37am UTC](https://discourse.beets.io/t/rate-sort-delete/330/7 "2018-04-18T10:37:06Z")

</div>

Here, I wrote you a little script.

> <https://gist.github.com/rwilhelm/50cb1772f5395e4ccb2fcfeae8ea10d4>

It’s a good way to start to learn some programming. With a little bit of trying you may be able to figure it out and change it to your liking or so that it works for you at all. You don’t need mpdfavd for that. It’s bare-bones, untested, but I guess combined with some global hotkeys (look at [xbindkeys](https://wiki.archlinux.org/index.php/Xbindkeys)) it could do be helpful to you.

All the actions apply to the currently running song. Rating go from 0 to 5.

To rate:

```
./sort-rate-delete.sh rate 3

```

To get the rating:

```
./sort-rate-delete.sh rating

```

To sort it:

```
./sort-rate-delete.sh sort

```

To delete it:

```
./sort-rate-delete.sh delete
```

---

<div class="post-metadata">

**Author:** ![Jungo](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jungo](https://discourse.beets.io/u/Jungo)\
**Post date:** [May 5, 2018, 6:43am UTC](https://discourse.beets.io/t/rate-sort-delete/330/8 "2018-05-05T06:43:31Z")

</div>

Hi! Thank you for script. I am trying to do it better for me

> <https://github.com/Jungo495/music/blob/master/sort-rate-delete.sh>

no user configuration found at /home/jungo/.config/beets/config.yaml  
data directory: /home/jungo/.config/beets  
plugin paths:  
Sending event: pluginload  
library database: /home/jungo/workfiles/music/sorted/sorted.db  
library directory: /home/jungo/workfiles/music/sorted  
Sending event: library\_opened  
error: no such file or directory: /20170907/Andra - Lie To Me-f6tU6BfnWEI.mp3

but the problem that i want preserve directory structure such as in unsorted folder  
some part of my collection without tags  
can you help me again?  
i am tried to rsync it but no luck has been goted
