Created
February 6, 2016 18:35
-
-
Save bse666/44ffa56aae29a6d60b20 to your computer and use it in GitHub Desktop.
Music Raspberry
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
sudo apt-get update; | |
sudo apt-get install -y mpd mpd-sima; | |
cd /usr/share/mpd-sima/lib | |
sudo wget patchfile | |
sudo patch -p5 < patch | |
sudo rm -f patch | |
sudo mpd-sima restart |
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
--- a/tags/0.9.2/src/lib/simafm.py (révision 642) | |
+++ b/tags/0.9.2/src/lib/simafm.py (copie de travail) | |
@@ -205,9 +205,9 @@ | |
raise XmlFMHTTPError(err) | |
raise XmlFMError(err) | |
header = fd.info().getheader("Content-Type", "").split(';') | |
- if header[0].strip() != "text/xml": | |
+ if header[0].strip().lower() != "text/xml": | |
raise XmlFMError('None XML returned from the server') | |
- if header[1].strip() != "charset=utf-8": | |
+ if header[1].strip().lower() != "charset=utf-8": | |
raise XmlFMError('XML not UTF-8 encoded!') | |
try: | |
self.current_element = ElementTree(file=fd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment