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

Commit 47335584 authored by clint's avatar clint

convert the timestamp

parent 4b8a80ae
......@@ -24,7 +24,7 @@ def parse_track(row):
try:
track_info = row.find('td', 'subjectCell')
artist, track = track_info.findAll('a')
timestamp = row.find('abbr')['title']
timestamp = time.strftime("%s",time.strptime(row.find('abbr')['title'],"%Y-%m-%dT%H:%M:%SZ"))
artist = artist.contents[0].strip()
track = track.contents[0].strip()
return (artist, track, timestamp)
......
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