Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.26 KB | None | 0 0
  1. === modified file 'plugins/daapclient/__init__.py'
  2. --- plugins/daapclient/__init__.py  2010-05-30 19:36:59 +0000
  3. +++ plugins/daapclient/__init__.py  2011-02-13 02:57:33 +0000
  4. @@ -76,14 +76,15 @@
  5.          """
  6.             Called when a new share is found.
  7.         """
  8. -        logger.info("DAAP: Found %s." % name)
  9. +        logger.info("DAAP: Found {0} at {3} ({1}::{2}).".format(name,address,port,host))
  10.          #Use all available info in key to avoid name conflicts.
  11.          nstr = '%s%s%s%s%s' % (interface, protocol, name, type, domain)
  12.  
  13.          if name in self.services:   # using only name for conflicts (for multiple adapters)
  14.              return
  15.  
  16. -        self.services[name] = (address, port)
  17. +        server = host if host else address
  18. +        self.services[name] = (server, port)
  19.          self.new_share_menu_item(name)
  20.  
  21.      def remove_service(self, interface, protocol, name, type, domain, flags):
  22.  
  23. === modified file 'plugins/daapserver/__init__.py'
  24. --- plugins/daapserver/__init__.py  2010-05-29 23:42:55 +0000
  25. +++ plugins/daapserver/__init__.py  2011-02-13 02:27:09 +0000
  26. @@ -29,7 +29,6 @@
  27.          self.map = []
  28.  
  29.      def __iter__(self):
  30. -        print 'GEN ITERRR'
  31.          i = 0
  32.          self.map = []
  33.          for t in self.collection:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement