Added Youtube download option

I agree that the code could be optimized. 
Also there is some duplicate code in the project which could be re-factored to make it re-usable. 

I can help out there.
I'll patch it up tonight to be the current year.


On Fri, Aug 15, 2014 at 10:49 AM, theopolisme <notifications@github.com>
wrote:

> In library_functions.js:
>
> > +          })
> > +          .on('error', function(err) {
> > +            callback(err);
> > +          })
> > +          .save(location);
> > +      }
> > +    ], function(error) {
> > +      if(!error) {
> > +        var song = {
> > +          title: trackInfo.title || 'Unknown Title',
> > +          album: 'Unknown Album',
> > +          artist: trackInfo.author  || 'Unknown Artist',
> > +          albumartist: 'Unknown Artist',
> > +          display_artist: 'Unknown Artist',
> > +          genre: 'Unknown Genre',
> > +          year: '2014',
>
> This should probably not be hardcoded ;)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/benkaiser/node-music-player/pull/21/files#r16276054>.
>