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

Commit 57605bba authored by Daniel Watkins's avatar Daniel Watkins

Use GobbleTracks in import.py.

parent 87dfe472
......@@ -6,7 +6,7 @@ sys.path.append(os.path.join(sys.path[0], '../scripts'))
from datetime import datetime
import getpass
from gobble import GobbleServer
from gobble import GobbleServer, GobbleTrack
from optparse import OptionParser
import time
from urllib import urlencode
......@@ -27,6 +27,6 @@ if __name__ == '__main__':
for line in file(data):
artist,track,timestamp = line.strip().split("\t")
dt = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%SZ")
gobbler.add_track(artist, track, dt)
gobbler.add_track(GobbleTrack(artist, track, dt))
print "Adding to post %s playing %s" % (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