Skip to content

Commit

Permalink
updated mpdplaylist man page
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Oct 16, 2023
1 parent 030f8c6 commit 4147232
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions mpdplaylist.1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.\" vim: tw=75
.TH mpdplaylist 1
.SH NAME
mpdplaylist \- Generate playlist for Music Player Daemon
Expand All @@ -17,9 +18,9 @@ database generated by \fBmpdev\fR(1) and the ratings maintained in the
sticker database for mpd.

\fBmpdplaylist\fR(1) displays the result on stdout. You can redirect the
output to any filename with m3u extension. You can also use --playlist option
tosave the result to a playlist in the mpd(1) \fIplaylist_directory\fR
configured in mpd.conf(5).
output to any filename with m3u extension. You can also use --playlist
option tosave the result to a playlist in the mpd(1)
\fIplaylist_directory\fR configured in mpd.conf(5).

If no options are given, \fBmdplaylist\fR can use the file
$HOME/.mpdplaylist.options to use default options. You can use
Expand Down Expand Up @@ -122,32 +123,52 @@ Known values for OPTION are:

.SH EXAMPLES
.EX
Load a playlist as defined in ~/.mpdplaylist.options
\fBmpdplaylist\fR
Load a playlist as defined in ~/.mpdplaylist.new
\fBmpdplaylist\fR --options-file=~/.mpdplaylist.new
List all songs added in the last 3 days
\fBmpdplaylist\fR --new=3
List all songs belonging to \fIHindi\fR genre, having a rting of 6 & greater (on a scale of 10),
from the year 1970 to the year 2000. Sort the result on the \fIlast_played\fR field in
ascendning order and in descending order of the \fIrating\fR field.
\fBmpdplaylist\fR --fromyear=1970 --toyear=2000 --incgenre="Hindi" --minrating=6 --oldfirst --popular
List all songs belonging to \fIHindi\fR genre, having a rting of 6 &
greater (on a scale of 10), from the year 1970 to the year 2000. Sort the
result on the \fIlast_played\fR field in ascendning order and in descending
order of the \fIrating\fR field.
\fBmpdplaylist\fR --fromyear=1970 --toyear=2000 --incgenre="Hindi" \
--minrating=6 --oldfirst --popular
List all songs in the genre 'Heavy Metal' and 'Hard Rock', added in the
last 30 days
List all songs in the genre 'Heavy Metal' and 'Hard Rock', added in the last 30 days
\fBmpdplaylist\fR --incgenre="Heavy Metal, Hard Rock" --new=30
List all songs heard in the last 10 days
\fBmpdplaylist\fR --daysheard=10
List all songs not heard in the last 20 days
\fBmpdplaylist\fR --daysnotheard=20
List all songs which have never been heard
\fBmpdplaylist\fR --daysnotheard=0
List all songs not heard in the last 20 days order by last played with the last played at top
List all songs added in the last 1 year but have never been heard
\fBmpdplaylist\fR --new=365 --daysnotheard=0
List all songs not heard in the last 20 days order by last played with the
last played at top
\fBmpdplaylist\fR --oldfirst --daysnotheard=20
Save the output in the mpd playlist new
\fBmpdplaylist\fR --incgenre="Heavy Metal, Hard Rock" --new=30 --playlist=new
\fBmpdplaylist\fR --incgenre="Heavy Metal, Hard Rock" --new=30 --playlist=new
.EE

.SH RETURN VALUE
Expand Down

0 comments on commit 4147232

Please sign in to comment.