예제 #1
0
파일: connections.py 프로젝트: Olti/mythtv
 def fromUPNP(cls, timeout=5):
     reLOC = re.compile('http://(?P<ip>[0-9\.]+):(?P<port>[0-9]+)/.*')
     msearch = MSearch()
     for res in msearch.searchMythFE(timeout):
         ip, port = reLOC.match(res['location']).group(1,2)
         port = 6546
         yield cls(ip, port)
예제 #2
0
 def fromUPNP(cls, timeout=5):
     reLOC = re.compile('http://(?P<ip>[0-9\.]+):(?P<port>[0-9]+)/.*')
     msearch = MSearch()
     for res in msearch.searchMythFE(timeout):
         ip, port = reLOC.match(res['location']).group(1, 2)
         port = 6546
         try:
             yield cls(ip, port)
         except MythFEError:
             pass
예제 #3
0
 def fromUPNP(cls, timeout=5.0):
     reLOC = re.compile('http://(?P<ip>[0-9\.]+):(?P<port>[0-9]+)/.*')
     msearch = MSearch()
     for res in msearch.searchMythBE(timeout):
         ip, port = reLOC.match(res['location']).group(1, 2)
         yield cls(ip, port)