Commit dd7fc9b0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Audioscrobbler: activate libre.fm capacity since last.fm is geing more and...

Audioscrobbler: activate libre.fm capacity since last.fm is geing more and more on the dark side... :D
parent 8b0468f4
...@@ -134,10 +134,8 @@ static void HandleInterval ( mtime_t *, unsigned int * ); ...@@ -134,10 +134,8 @@ static void HandleInterval ( mtime_t *, unsigned int * );
#define USERNAME_LONGTEXT N_("The username of your last.fm account") #define USERNAME_LONGTEXT N_("The username of your last.fm account")
#define PASSWORD_TEXT N_("Password") #define PASSWORD_TEXT N_("Password")
#define PASSWORD_LONGTEXT N_("The password of your last.fm account") #define PASSWORD_LONGTEXT N_("The password of your last.fm account")
#if 0 #define URL_TEXT N_("Scrobbler URL")
#define URL_TEXT N_("Scrobbler URL") #define URL_LONGTEXT N_("The URL set for an alternative scrobbler engine")
#define URL_LONGTEXT N_("The URL set for an alternative scrobbler engine")
#endif
/* This error value is used when last.fm plugin has to be unloaded. */ /* This error value is used when last.fm plugin has to be unloaded. */
#define VLC_AUDIOSCROBBLER_EFATAL -69 #define VLC_AUDIOSCROBBLER_EFATAL -69
...@@ -167,10 +165,8 @@ vlc_module_begin () ...@@ -167,10 +165,8 @@ vlc_module_begin ()
USERNAME_TEXT, USERNAME_LONGTEXT, false ) USERNAME_TEXT, USERNAME_LONGTEXT, false )
add_password( "lastfm-password", "", NULL, add_password( "lastfm-password", "", NULL,
PASSWORD_TEXT, PASSWORD_LONGTEXT, false ) PASSWORD_TEXT, PASSWORD_LONGTEXT, false )
#if 0
add_string( "scrobbler-url", "post.audioscrobbler.com", NULL, add_string( "scrobbler-url", "post.audioscrobbler.com", NULL,
URL_TEXT, URL_LONGTEXT, false )*/ URL_TEXT, URL_LONGTEXT, false )
#endif
set_capability( "interface", 0 ) set_capability( "interface", 0 )
set_callbacks( Open, Close ) set_callbacks( Open, Close )
vlc_module_end () vlc_module_end ()
...@@ -786,11 +782,7 @@ static int Handshake( intf_thread_t *p_this ) ...@@ -786,11 +782,7 @@ static int Handshake( intf_thread_t *p_this )
strncpy( p_sys->psz_auth_token, psz_auth_token, 33 ); strncpy( p_sys->psz_auth_token, psz_auth_token, 33 );
free( psz_auth_token ); free( psz_auth_token );
#if 0
psz_scrobbler_url = config_GetPsz( p_this, "scrobbler-url" ); psz_scrobbler_url = config_GetPsz( p_this, "scrobbler-url" );
#else
psz_scrobbler_url = strdup( "post.audioscrobbler.com" );
#endif
if( !psz_scrobbler_url ) if( !psz_scrobbler_url )
{ {
free( psz_username ); free( psz_username );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment