johnsu01 (johnsu01) wrote,
johnsu01
johnsu01

  • Music:

Playing new music with mpd

I sat down to write about something, and decided I needed some music to do it. One of the problems with acquiring music via subscription services like emusic.com is that I sometimes never get around to listening to the music I download. I also acquired some CDs over the holidays. So, I thought it'd be nifty to have a way to shuffle and play all of the music that I've acquired in the last 31 days. Wanting particular things like this is part of why I use the combination of mpc and mpd. Here's what I came up with:

cd /mnt/enclosure/music && find encoded -path encoded/podcasts -prune -o -type f -mtime -30 -exec mpc add \{} +

It's not so portable, but it works for what I need.

Incidentally, this is the playlist that doing that right now gives me:

1) Django Reinhardt et le Quintette du Hot Club de France, avec Stéphane Grappelly - Tea For Two
2) Django Reinhardt - Dream Of You
3) Django Reinhardt - Marie
4) Django Reinhardt - Artillerie Lourde
5) Django Reinhardt et le Quintette du Hot Club de France with Stéphane Grappelli - Rose Room
6) Django Reinhardt - I Got Rhythm
7) Django Reinhardt - My Blue Heaven
8) The Quintet of the Hot Club of France with Stéphane Grappelli - Night And Day
9) Django Reinhardt - I've Had My Moments
10) Django Reinhardt et le Quintette du Hot Club de France, avec Stéphane Grappelly - Them There Eyes
11) Django Reinhardt et le Quintette du Hot Club de France with Stéphane Grappelli - A Little Love, A Little Kiss
12) Le Quintette Du Hot Club De France - It Don't Mean A Thing
13) Le Quintette Du Hot Club De France - It Was So Beautiful
14) Django Reinhardt - I'm Confessin' (That I Love You)
15) Django Reinhardt - Believe It, Beloved
16) Le Quintette Du Hot Club De France - Sweet Chorus
17) The Quintet of the Hot Club of France with Stéphane Grappelli - If I Had You
18) Django Reinhardt et le Quintette du Hot Club de France with Stéphane Grappelli - Charleston
19) Le Quintette Du Hot Club De France - In The Still Of The Night
20) Django Reinhardt - The Sunshine Of Your Smile
21) Django Reinhardt - Chasing Shadows
22) Le Quintette Du Hot Club De France - Moonglow
23) Django Reinhardt et le Quintette du Hot Club de France, avec Stéphane Grappelly - Jeepers Creepers
24) Django Reinhardt et le Quintette du Hot Club de France with Stéphane Grappelli - Exactly Like You
25) Django Reinhardt et le Quintette du Hot Club de France with Stéphane Grappelli - Hot Lips
26) Django Reinhardt - I'll Never Be the Same
27) Bob Dylan - Not Dark Yet
28) Bob Dylan - Cold Irons Bound
29) Bob Dylan - Million Miles
30) Bob Dylan - Highlands
31) Bob Dylan - Love Sick
32) Bob Dylan - Dirt Road Blues
33) Bob Dylan - Tryin'n To Get To Heaven
34) Bob Dylan - "Til I Fell In Love With You
35) Bob Dylan - Standing In The Doorway
36) Bob Dylan - Make you Feel My Love
37) Bob Dylan - Can't Wait
38) Bob Dylan - Idiot Wind
39) Bob Dylan - Buckets Of Rain
40) Bob Dylan - Simple Twist Of Fate
41) Bob Dylan - Tangled Up In Blue
42) Bob Dylan - You're Gonna Make Me Lonesome When You Go
43) Bob Dylan - If You See Her, Say Hello
44) Bob Dylan - Meet Me In The Morning
45) Bob Dylan - Lily, Rosemary And The Jack Of Hearts
46) Bob Dylan - You're A Big Girl Now
47) Bob Dylan - Shelter From The Storm
48) Sharon Jones & The Dap-Kings - The Collection Song (Bonus Track)
49) Sharon Jones & The Dap-Kings - When the Other Foot Drops, Uncle
50) Sharon Jones & The Dap-Kings - Be Easy
51) Sharon Jones & The Dap-Kings - Keep On Looking
52) Sharon Jones & The Dap-Kings - Answer Me
53) Sharon Jones & The Dap-Kings - Humble Me
54) Sharon Jones & The Dap-Kings - Nobody's Baby
55) Sharon Jones & The Dap-Kings - Tell Me
56) Sharon Jones & The Dap-Kings - 100 Days, 100 Nights
57) Sharon Jones & The Dap-Kings - Something's Changed
58) Sharon Jones & The Dap-Kings - Let Them Knock
59) Burial - UK
60) Burial - Homeless
61) Burial - Untrue
62) Burial - Near Dark
63) Burial - Archangel
64) Burial - Shell Of Light
65) Burial - Untitled
66) Burial - Ghost Hardware
67) Burial - Endorphin
68) Burial - Raver
69) Burial - Etched Headplate
70) Burial - Dog Shelter
71) Burial - In McDonalds
72) Gotan Project - Una Musica Brutal
73) Gotan Project - La Del Ruso
74) Gotan Project - Triptico
75) Gotan Project - Epoca
76) Gotan Project - Queremos Paz
77) Gotan Project - Last Tango In Paris
78) Gotan Project - Santa Maria (Del Buen Ayre)
79) Gotan Project - El Capitalismo Foraneo
80) Gotan Project - Chunga's Revenge
81) Okkervil River - Plus Ones
82) Okkervil River - Savannah Smiles
83) Okkervil River - A Hand to Take Hold of the Scene
>84) Okkervil River - Unless It's Kicks
85) Okkervil River - Our Life is Not a Movie or Maybe
86) Okkervil River - A Girl In Port

Now, what is it that I was going to write about again?

Tags: bash, code, mpc, mpd, music, shell, unix
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 7 comments