[vlc-devel] commit: last.fm no longer requires submissions to be local files ( Rafaël Carré )

git version control git at videolan.org
Sun Oct 18 20:13:01 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Oct 18 20:12:25 2009 +0200| [6eb5c03ff6bf5aa170218c2b5c3bb82b06e4011b] | committer: Rafaël Carré 

last.fm no longer requires submissions to be local files

Closes #3006

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6eb5c03ff6bf5aa170218c2b5c3bb82b06e4011b
---

 modules/misc/audioscrobbler.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index 47a44f3..bae7d6c 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -26,6 +26,7 @@
  * http://www.audioscrobbler.net/development/protocol/
  *
  * TODO:    "Now Playing" feature (not mandatory)
+ *          Update to new API? http://www.lastfm.fr/api
  */
 /*****************************************************************************
  * Preamble
@@ -540,9 +541,9 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     }
 
     var_Change( p_input, "video-es", VLC_VAR_CHOICESCOUNT, &video_val, NULL );
-    if( ( video_val.i_int > 0 ) || p_item->i_type == ITEM_TYPE_NET )
+    if( video_val.i_int > 0 )
     {
-        msg_Dbg( p_this, "Not an audio local file, not submitting");
+        msg_Dbg( p_this, "Not an audio-only input, not submitting");
         vlc_object_release( p_input );
         return VLC_SUCCESS;
     }




More information about the vlc-devel mailing list