<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>214922</bug_id>
          
          <creation_ts>2009-11-17 05:00:56 +0000</creation_ts>
          <short_desc>Last.fm &quot;Listening Now&quot; fails</short_desc>
          <delta_ts>2011-01-25 20:38:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>amarok</product>
          <component>Services/Last.fm</component>
          <version>2.3.1-GIT</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>donotreply</reporter>
          <assigned_to name="Amarok Bugs">amarok-bugs-null</assigned_to>
          <cc>dmeltzer.devel</cc>
    
    <cc>kde</cc>
    
    <cc>lfranchi</cc>
    
    <cc>michal.petrucha</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>27</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>863390</commentid>
    <comment_count>0</comment_count>
    <who name="">donotreply</who>
    <bug_when>2009-11-17 05:00:56 +0000</bug_when>
    <thetext>Version:           2.2.1 (using KDE 4.3.3)
OS:                Linux
Installed from:    Ubuntu Packages

During audio playback in Amarok, the scrobbler for the Last.fm service, specifically its &quot;Listening Now&quot; status, bugs out. Play a few songs with the scrobbler enabled and keep an eye out on the satus on your page. After a track or so, the &quot;Listening Now&quot; status for the current track playing vanishes, and tracks are added after playback, but the &quot;Listening Now&quot; status remains gone until you restart Amarok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>912782</commentid>
    <comment_count>1</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2010-02-07 14:10:08 +0000</bug_when>
    <thetext>Please upgrade to Amarok 2.2.2, this should be solved now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922255</commentid>
    <comment_count>2</comment_count>
    <who name="">donotreply</who>
    <bug_when>2010-02-22 05:28:09 +0000</bug_when>
    <thetext>Still occurs in 2.2.2, and even 2.3 beta. Using a fresh amarok config has yielded negative results as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922290</commentid>
    <comment_count>3</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2010-02-22 09:11:09 +0000</bug_when>
    <thetext>Are your tracks correctly tagged?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>923373</commentid>
    <comment_count>4</comment_count>
    <who name="">donotreply</who>
    <bug_when>2010-02-24 11:01:43 +0000</bug_when>
    <thetext>Yes files are correctly tagged. Testing with Banshee gives a positive result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>923430</commentid>
    <comment_count>5</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2010-02-24 13:17:22 +0000</bug_when>
    <thetext>Changing version. Leo, any ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927624</commentid>
    <comment_count>6</comment_count>
    <who name="">donotreply</who>
    <bug_when>2010-03-03 12:21:29 +0000</bug_when>
    <thetext>Another thing I picked up on that might help, I cannot get some intros/short tracks (typically under 30 seconds, a minute max I suppose?) to scrobble either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927828</commentid>
    <comment_count>7</comment_count>
    <who name="Leo Franchi">lfranchi</who>
    <bug_when>2010-03-03 19:02:01 +0000</bug_when>
    <thetext>that&apos;s  because scrobbling of tracks &lt;30s is not allowed by last.fm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>928314</commentid>
    <comment_count>8</comment_count>
    <who name="">donotreply</who>
    <bug_when>2010-03-04 15:35:38 +0000</bug_when>
    <thetext>Oh, did not know that about tracks &lt;30s. Thanks for that tidbit. :)

I looked around and Banshee used to have a similar problem with their old scrobbler that got fixed before they switched to the newer Last.fm scrobbler. Unsure if it helps, but the problems seemed very similar (I used to use Banshee not so long ago), I&apos;ll link just in case its of any interest...

Report: https://bugzilla.gnome.org/show_bug.cgi?id=586460
Commit: http://git.gnome.org/browse/banshee/commit/?id=3d93f4d21e6023e3784076e76169eb1f689ba7f7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1064955</commentid>
    <comment_count>9</comment_count>
    <who name="Michal Petrucha">michal.petrucha</who>
    <bug_when>2010-12-28 15:08:15 +0000</bug_when>
    <thetext>According to my observations, when you start up Amarok and start playing, the first now playing notification gets displayed all right. However, when Amarok finishes the first track and starts playing another one immediately, the notification isn&apos;t shown. Also, when you listen to something, stop playing for a while and then start a song from the beginning, the notification is all right.

As I see this, the likely cause is that when changing tracks, Amarok sends both the now playing submission for the new track and the scrobble for the old one at the same time. The server probably picks them up in the wrong order, therefore the now playing submission gets invalidated immediately by the song already finished.

I see two solutions to this:
1) serialize the submissions, i. e. wait for response to the scrobble before sending the notification
2) implement the up-to-date 2.0 scrobbling API (http://www.last.fm/api/scrobbling) – this approach incorporates the notifications and scrobbles into the last.fm web services API.

Personally I&apos;d suggest the second option since version 1.2.1 of the protocol is deprecated (as you can see in the page linked above).

http://www.last.fm/forum/21716/_/656504 and http://www.last.fm/forum/21716/_/656492 might be useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1067670</commentid>
    <comment_count>10</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-01-04 00:05:57 +0000</bug_when>
    <thetext>Isn&apos;t this solved already since quite some time? I can scrobble correctly here with Amarok 2.4-git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075550</commentid>
    <comment_count>11</comment_count>
    <who name="Michal Petrucha">michal.petrucha</who>
    <bug_when>2011-01-19 15:01:00 +0000</bug_when>
    <thetext>Scrobbling was not an issue.

Anyway, on 2.3.90, the now playing notifications have about 47% success rate here. I couldn&apos;t find a pattern in the failing notifications, however, I check often and about half the time the notification is shown correctly and about half the time it isn&apos;t there. The debug log shows they were all submitted all right to the submission server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075834</commentid>
    <comment_count>12</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-01-20 02:09:46 +0000</bug_when>
    <thetext>Sorry if I play dumb, but what &quot;now playing notifications&quot; are you talking about? In last.fm? or in the Amarok status bar?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078612</commentid>
    <comment_count>13</comment_count>
    <who name="Michal Petrucha">michal.petrucha</who>
    <bug_when>2011-01-25 19:49:28 +0000</bug_when>
    <thetext>(Sorry, I thought I already replied a few days ago...)

I&apos;m talking about last.fm all the time, by now playing notifications I mean the submissions sent to http://post.audioscrobbler.com:80/np_1.2 and I consider them successful when the profile page shows I&apos;m currently listening to the song.

Hope this is clear enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078632</commentid>
    <comment_count>14</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-01-25 20:38:04 +0000</bug_when>
    <thetext>Yes, you are clear enough. This is likely due to an overload on the last.fm servers, nothing we can do about.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>