We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b00d5333 authored by clint's avatar clint

Patch from majeru to print line number on lastscrape import

parent a1b8d78d
......@@ -41,9 +41,11 @@ if __name__ == '__main__':
password = getpass.getpass()
gobbler = GobbleServer(server, username, password)
n = 0
for line in file(data):
n = n + 1
artist,track,timestamp = line.strip().split("\t")
dt = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%SZ")
gobbler.add_track(GobbleTrack(artist, track, dt))
print "Adding to post %s playing %s" % (artist, track)
print "%d: Adding to post %s playing %s" % (n, artist, track)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment