Permalink
Browse files

Fix for issue #35, Custom name not working correctly

  • Loading branch information...
simoncadman committed Jul 18, 2013
1 parent 2957fe9 commit 801077afff7383b9d9957797bca1f13dee1410e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 setupcloudprint.py
View
@@ -79,8 +79,8 @@
if prefix == "":
print("Not using prefix")
- printername = prefix + ccpprinter['name']
- uri = printer.printerNameToUri(ccpprinter['account'], ccpprinter['name'].encode('ascii', 'replace'))
+ printername = prefix + ccpprinter['name'].encode('ascii', 'replace')
+ uri = printer.printerNameToUri(ccpprinter['account'], printername)
found = False
for cupsprinter in cupsprinters:
if cupsprinters[cupsprinter]['device-uri'] == uri:

0 comments on commit 801077a

Please sign in to comment.