Skip to content

Instantly share code, notes, and snippets.

@bse666
Created February 6, 2016 18:35
Show Gist options
  • Save bse666/44ffa56aae29a6d60b20 to your computer and use it in GitHub Desktop.
Save bse666/44ffa56aae29a6d60b20 to your computer and use it in GitHub Desktop.
Music Raspberry
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
--- 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