trdlo / client175

Automatically exported from code.google.com/p/client175
GNU General Public License v3.0
0 stars 0 forks source link

Password must be set before first call to MPD #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Client175 Release 0.3, MPD 0.15.4

I'm using MPD with password authorization.
After adding "mpd_password" option to site.conf, Client175 fails to start and 
shows error:
mpd.CommandError: [4@0] {tagtypes} you don't have permission for "tagtypes"

I don't understand anything in Python, but I fixed this problem by moving this 
condition

---
 if _password:
                self.password(_password)

---
four line upper, before this line

---
self._TAGS = self.tagtypes()

---

in file "mpd.py"
I belive, you can make a bit better fix in trunk :)
Thanks.

Original issue reported on code.google.com by sniff...@gmail.com on 26 Aug 2010 at 4:28

GoogleCodeExporter commented 8 years ago
Just moving it up four lines is the perfect fix.  Thanks for debugging and 
providing the fix!  I'll fix this in trunk now.

Original comment by cseic...@gmail.com on 26 Aug 2010 at 10:38

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r106.

Original comment by cseic...@gmail.com on 26 Aug 2010 at 10:38