setService(
UPnPOfflineDownloader _service )
{
service = _service;
UPnPRootDevice root = service.getGenericService().getDevice().getRootDevice();
service_ip = root.getLocation().getHost();
try{
service_ip = InetAddress.getByName( service_ip ).getHostAddress();
}catch( Throwable e ){
Debug.out( e );
}
Map cache = root.getDiscoveryCache();
if ( cache != null ){
setPersistentMapProperty( PP_OD_UPNP_DISC_CACHE, cache );
}
manufacturer = root.getDevice().getManufacturer();
setPersistentStringProperty( PP_OD_MANUFACTURER, manufacturer );
updateDownloads();
}