Last active
November 9, 2016 22:04
-
-
Save rothmichaels/ca1afa1f83ab85d56b8a2d03faef10ec to your computer and use it in GitHub Desktop.
Removes SQLite VACUUM command references from Spotify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| target = "/Applications/Spotify.app/Contents/MacOS/Spotify" | |
| with open(target) as infile: | |
| bytes = infile.read() | |
| with open("./Spotify", "wb") as backup: | |
| backup.write(bytes) | |
| fixed = bytes.replace("VACUUM;", "xxxxxx;") | |
| with open (target, "wb") as outfile: | |
| outfile.write(fixed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment