/*****************************************************************************
* Module descriptor
- *****************************************************************************
- * This module should be used on windows with MSN (i think that you need to
- * have MSN 7 or newer) to "advertise" what you are playing in VLC.
- * You need to enable the "What I'm Listening To" option in MSN.
- *****************************************************************************/
+ ****************************************************************************/
+
+/// \bug [String] REmove all "Growl" in short desc
+
#define SERVER_DEFAULT "127.0.0.1"
#define SERVER_TEXT N_("Growl server")
-#define SERVER_LONGTEXT N_("Growl server receiving notifications.")
+#define SERVER_LONGTEXT N_("This is the host to which Growl notifications " \
+ "will be sent. By default, notifications are sent locally." )
#define PASS_DEFAULT ""
#define PASS_TEXT N_("Growl password")
+/// \bug [String] Password on the Growl server.
#define PASS_LONGTEXT N_("Growl password on the server.")
#define PORT_TEXT N_("Growl UDP port")
-#define PORT_LONGTEXT N_("Growl UPD port on the server.")
-#define TTL_TEXT N_("Growl TTL")
-#define TTL_LONGTEXT N_("Growl TTL.")
+/// \bug [String] UDP port on the Growl server
+#define PORT_LONGTEXT N_("Growl UDP port on the server.")
vlc_module_begin();
set_category( CAT_INTERFACE );
set_subcategory( SUBCAT_INTERFACE_CONTROL );
- set_shortname( N_( "growl" ) );
+ set_shortname( N_( "Growl" ) );
set_description( _("Growl Notification Plugin") );
add_string( "growl-server", SERVER_DEFAULT, NULL,
PASS_TEXT, PASS_LONGTEXT, VLC_FALSE );
add_integer( "growl-port", 9887, NULL,
PORT_TEXT, PORT_LONGTEXT, VLC_TRUE );
- add_integer( "growl-ttl", 12, NULL,
- TTL_TEXT, TTL_LONGTEXT, VLC_TRUE );
set_capability( "interface", 0 );
set_callbacks( Open, Close );
{
var_DelCallback( p_playlist, "playlist-current", ItemChange, p_this );
vlc_object_release( p_playlist );
- return VLC_EGENERIC;
}
-
-
}
/*****************************************************************************
char *psz_album = NULL;
input_thread_t *p_input;
- p_playlist = (playlist_t *)vlc_object_find( p_this, VLC_OBJECT_INPUT,
+ p_playlist = (playlist_t *)vlc_object_find( p_this, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( !p_playlist ) return VLC_EGENERIC;
}
/* Playing something ... */
- psz_artist = vlc_input_item_GetInfo( p_input->input.p_item,
- _("Meta-information"),
- _(VLC_META_ARTIST) );
- psz_album = vlc_input_item_GetInfo( p_input->input.p_item,
- _("Meta-information"),
- _("Album/movie/show title" ) );
+ psz_artist = p_input->input.p_item->p_meta->psz_artist ?
+ strdup( p_input->input.p_item->p_meta->psz_artist ) :
+ strdup( "" );
+ psz_album = p_input->input.p_item->p_meta->psz_album ?
+ strdup( p_input->input.p_item->p_meta->psz_album ) :
+ strdup( "" );
psz_title = strdup( p_input->input.p_item->psz_name );
if( psz_title == NULL ) psz_title = strdup( N_("(no title)") );
if( psz_artist == NULL ) psz_artist = strdup( N_("(no artist)") );
char *psz_password = config_GetPsz( p_intf, "growl-password" );
char *psz_server = config_GetPsz( p_intf, "growl-server" );
int i_port = config_GetInt( p_intf, "growl-port" );
- int i_ttl = config_GetInt( p_intf, "growl-ttl" );
strcpy( (char*)(p_data+i_offset), psz_password );
i = i_offset + strlen(psz_password);
p_data[i_offset++] = (md5.p_digest[i]>>24)&0xFF;
}
- i_handle = net_ConnectUDP( p_this, psz_server, i_port, i_ttl );
+ i_handle = net_ConnectUDP( p_this, psz_server, i_port, 0 );
if( i_handle == -1 )
{
msg_Err( p_this, "failed to open a connection (udp)" );