Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.3.0
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (22 sloc) 0.49 kb
#!/usr/bin/env python
from songfile import SongFile
import json
mp3Path = "/home/mike/Music/Gorillaz/Demon Days/03 Kids With Guns.mp3"
songFile = SongFile()
songFile.load(mp3Path)
print "songFile"
print songFile
print hash(songFile)
print songFile.jsonHash()
print
jsonStr = songFile.toJson()
print "jsonStr"
print jsonStr
print
songFile2 = SongFile()
songFile2.fromJson(jsonStr)
print "songFile2"
print songFile2
print songFile2.artist
print hash(songFile2)
print songFile2.jsonHash()
Jump to Line
Something went wrong with that request. Please try again.