use gobject introspection to access gupnp-igd
This commit is contained in:
		
							parent
							
								
									b81863527f
								
							
						
					
					
						commit
						7ebde173bc
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -191,9 +191,8 @@ except ImportError:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HAVE_UPNP_IGD = True
 | 
					HAVE_UPNP_IGD = True
 | 
				
			||||||
try:
 | 
					try:
 | 
				
			||||||
    raise ImportError
 | 
					    from gi.repository import GUPnPIgd
 | 
				
			||||||
    import gupnp.igd
 | 
					    gupnp_igd = GUPnPIgd.SimpleIgd()
 | 
				
			||||||
    gupnp_igd = gupnp.igd.Simple()
 | 
					 | 
				
			||||||
except ImportError:
 | 
					except ImportError:
 | 
				
			||||||
    HAVE_UPNP_IGD = False
 | 
					    HAVE_UPNP_IGD = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue