daily or weekly email that shows recently added music?

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

daily or weekly email that shows recently added music?

Postby boognish43 » Tue Dec 20, 2011 1:28 am

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?
boognish43
 
Posts: 66
Joined: Sat Jan 09, 2010 3:13 pm

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

Postby mikes » Tue Dec 20, 2011 2:11 am

Code: Select all
find /path/to/music -ctime -7 -print | mail -s "music added in the past 7 days" myemail@example.com
mikes
 
Posts: 63
Joined: Fri Aug 12, 2011 9:29 pm

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

Postby boognish43 » Tue Dec 20, 2011 2:19 am

woah.. so where do I add this? bit of a noob :)
boognish43
 
Posts: 66
Joined: Sat Jan 09, 2010 3:13 pm

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

Postby mikes » Tue Dec 20, 2011 2:46 am

In a daily cron job. Unless you're using Windoze, in which case it's probably a lot harder.
mikes
 
Posts: 63
Joined: Fri Aug 12, 2011 9:29 pm

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

Postby BKKKPewsey » Tue Dec 20, 2011 4:46 am

Its all alien to me but http://cronw.sourceforge.net/ may be of interest to any windoze users.
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

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

Postby gkoat » Thu Aug 16, 2012 4:09 am

Can anyone elaborate on this further for users on windows?
gkoat
 
Posts: 5
Joined: Mon Dec 13, 2010 4:36 am

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

Postby hakko » Thu Aug 16, 2012 5:14 am

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.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby gkoat » Thu Aug 16, 2012 6:08 am

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?
gkoat
 
Posts: 5
Joined: Mon Dec 13, 2010 4:36 am

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

Postby hakko » Thu Aug 16, 2012 8:59 am

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.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby Override92 » Tue Sep 09, 2014 9:34 am

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 :wink:
Override92
 
Posts: 43
Joined: Wed Jul 16, 2014 11:30 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests