Support for LastFM scrobbling (issue #19)

This commit is contained in:
ejurgensen
2014-08-15 23:36:54 +02:00
parent 21cf3ab7d3
commit 6d8e4c67aa
11 changed files with 1085 additions and 22 deletions

View File

@@ -63,6 +63,9 @@
#include "remote_pairing.h"
#include "player.h"
#ifdef LASTFM
# include "lastfm.h"
#endif
#ifdef HAVE_SPOTIFY_H
# include "spotify.h"
#endif
@@ -687,6 +690,14 @@ process_file(char *file, time_t mtime, off_t size, int type, int flags)
return;
}
#ifdef LASTFM
else if (strcmp(ext, ".lastfm") == 0)
{
lastfm_login(file);
return;
}
#endif
#ifdef HAVE_SPOTIFY_H
else if (strcmp(ext, ".spotify") == 0)
{