Avoiding the spam warning

 
    • Jaggo schrieb...
    • Benutzer
    • 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.

Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.