Changeset 98
- Timestamp:
- 04/30/08 22:53:26 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/org/lastpod/parser/PlayCountsParser.java
r80 r98 42 42 */ 43 43 public class PlayCountsParser implements TrackItemParser { 44 /** 45 * An offset to prevent spam protection from being triggered by last.fm. 46 */ 47 public static final long SPAM_PROTECTION_OFFSET = 31; 48 44 49 /** 45 50 * The location of the iTunes path. … … 205 210 TrackItem manufacturedTrack = new TrackItem(temptrack); 206 211 long lastplayed = temptrack.getLastplayed(); 207 long newLastPlayed = lastplayed + temptrack.getLength() ;212 long newLastPlayed = lastplayed + temptrack.getLength() - SPAM_PROTECTION_OFFSET; 208 213 209 214 manufacturedTrack.setLastplayed(newLastPlayed);
