You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rainer Hihn 39bb649a31 reverse output 3 years ago
README.md Update 'README.md' 3 years ago
beet.py reverse output 3 years ago

README.md

beet.py

A wrapper script for beets that makes it easy to display last added tracks and albums.

This script can be used to dynamically generate playlists for mpd. In fact, I wrote this script to easily copy the most recent tracks from my music collection to my phone.

$ beet.py -h
usage: beet.py [-h] [-S] [-M {date,tracks,albums}] [-F FILTER] [-Q]
               [-C MPD_CONFIG]

show the last tracks added to beet.

optional arguments:
  -h, --help            show this help message and exit
  -S, --singleton       show only singletons (default: False)
  -M {date,tracks,albums}, --mode {date,tracks,albums}
                        filter results either by date or by tracks (default:
                        tracks)
  -F FILTER, --filter FILTER
                        filter option. according to mode either the number of
                        tracks added or the date range. (default: 7)
  -Q, --quote           print results with quotes (default: False)
  -C MPD_CONFIG, --mpd-config MPD_CONFIG
                        path to mpd config (default: /etc/mpd.conf)

Examples

# Print the 2 most recent albums (added to the collection)
$ beet.py -M albums -F 
# Print the singleton tracks added during the last month (30 days)
$ beet.py -S -M date -F 30
# Print the 20 most recent singleton tracks (added to the collection)
$ beet.py -S -M tracks -F 20