Created
November 10, 2016 04:07
-
-
Save omniwired/cd8e6799d07ff9549fb64f2e3465bbca to your computer and use it in GitHub Desktop.
fix_spotify_sdd.py
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