]> git.sesse.net Git - vlc/commitdiff
last.fm no longer requires submissions to be local files
authorRafaël Carré <rafael.carre@gmail.com>
Sun, 18 Oct 2009 18:12:25 +0000 (20:12 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Sun, 18 Oct 2009 18:12:57 +0000 (20:12 +0200)
Closes #3006

modules/misc/audioscrobbler.c

index 47a44f3823241287ea0166af87ef6a2f6f1036af..bae7d6c0cecccc3dca7e1f63b6769bfce9eed91a 100644 (file)
@@ -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;
     }