예제 #1
0
 def run_probe(self, location):
     probe = Probe(location, debug=self.debug)
     program = probe.run(self.timeout)
     if program:
         self.results.put(program)
         if self.debug: print "Found: " + str(program)
     elif self.debug:
         print "Program name not found for: " + location
     self.running_threads.release()
예제 #2
0
from multicast_mpeg_scan.probe import Probe

probe = Probe('http://stream_url')
probe_result = probe.run(10)

if probe_result:
    print probe_result
else:
    print "Probe unsuccessful."