Page 1 of 1
daily or weekly email that shows recently added music?

Posted:
Tue Dec 20, 2011 1:28 am
by boognish43
I just thought it would be awesome if there was a way to send out a newsletter of sorts to every user with all of the newest additions to the server.
Could just be a simple email with a list of the last 50 additions or something. Is there anything like this out there yet?
Re: daily or weekly email that shows recently added music?

Posted:
Tue Dec 20, 2011 2:11 am
by mikes
- Code: Select all
find /path/to/music -ctime -7 -print | mail -s "music added in the past 7 days" myemail@example.com
Re: daily or weekly email that shows recently added music?

Posted:
Tue Dec 20, 2011 2:19 am
by boognish43
woah.. so where do I add this? bit of a noob

Re: daily or weekly email that shows recently added music?

Posted:
Tue Dec 20, 2011 2:46 am
by mikes
In a daily cron job. Unless you're using Windoze, in which case it's probably a lot harder.
Re: daily or weekly email that shows recently added music?

Posted:
Tue Dec 20, 2011 4:46 am
by BKKKPewsey
Its all alien to me but
http://cronw.sourceforge.net/ may be of interest to any windoze users.
Re: daily or weekly email that shows recently added music?

Posted:
Thu Aug 16, 2012 4:09 am
by gkoat
Can anyone elaborate on this further for users on windows?
Re: daily or weekly email that shows recently added music?

Posted:
Thu Aug 16, 2012 5:14 am
by hakko
This is not how you would implement this feature on a Windows system. It's a *ix specific hack that produces a rather ugly list of all files (file names) added to some media folder the last seven days and sends it out as a non-formatted email.
Re: daily or weekly email that shows recently added music?

Posted:
Thu Aug 16, 2012 6:08 am
by gkoat
hakko wrote:This is not how you would implement this feature on a Windows system. It's a *ix specific hack that produces a rather ugly list of all files (file names) added to some media folder the last seven days and sends it out as a non-formatted email.
ok...does anyone know of a feature or workaround that will make an itemized list of recently added albums or folders and put it in an email and then send it to email addresses of my listeners? I'd love for this to be a feature, but doesn't seem like such exists. Can anyone tell me how one might make this happen outside of subsonic?
Re: daily or weekly email that shows recently added music?

Posted:
Thu Aug 16, 2012 8:59 am
by hakko
It totally depends on what's in your toolbox. But I'd say you need some kind of programming skills (or a friend with programming skills). Everything's there for you, you just need some glue to make the different parts come together.
Re: daily or weekly email that shows recently added music?

Posted:
Tue Sep 09, 2014 9:34 am
by Override92
mikes wrote:- Code: Select all
find /path/to/music -ctime -7 -print | mail -s "music added in the past 7 days" myemail@example.com
Thanks for this mikes,
i did some changes:
- Code: Select all
"find /path/to/music/folder -type d -ctime -7 -print | perl -pe 's#^/path/to/music/folder##' | mail -s "Music, added in the past 7 days" destination@mail.address -Fsendername"
if you are using a smarthost (relayhost) add:
- Code: Select all
"-fsource@mail.address"
behind
- Code: Select all
"destination@mail.address"
The output should look like this:
- Code: Select all
/
/Bob Marley
/Bob Marley/At The Lyceum In London (1997)
/Fat Freddy's Drop
/Fat Freddy's Drop/Hope For A Generation EP
/Wasted Penguinz
/Wasted Penguinz/Wistfulness
/Wasted Penguinz/Raindropz (2013)
/Sonny
/Sonny/Gypsyhook (2009)
/Eddy Grant
/Eddy Grant/Hits From The Frontline (1999)
/Eddy Grant/Can't Get Enough (1981)
/Eddy Grant/Killer On The Rampage (1982)
/Eddy Grant/File Under Rock (1988)
/Kalbata & Mixmonster
/Kalbata & Mixmonster/Congo Beat The Drum (2013)
Override
