iPodScrobbler » Discussions

Avoiding the spam warning

 
    • Jaggo said...
    • User
    • 21 Jul 2007, 22:51

    Avoiding the spam warning

    kaneda42the script could check on last.fm when your last upload was and then use that timestamp to avoid duplicate uploads.
    I'll check that out.


    In order to add this funcionality, [in 3 simple steps:]

    1) locate the line where it says, "#add it here".
    2) After that line, paste the following Two lines:
    if int(timestamp+iPodDateOffset)<int(int(urllib.urlopen(str("http://ws.audioscrobbler.com/1.0/user/"; + "USERNAME" + "/recenttracks.txt")).readlines()[0].rsplit(",")[0]) + 30):
    continue

    [paying attention to the 4 spaces at the beginning of the "continue" line.]

    3) replace USERNAME with your username, leaving the q-marks in place.

Anonymous users may not post messages. Please log in or create an account to post in the forums.