/** * @see X_VlcShares_Plugins_ResolverInterface::getLocation() */ function resolveLocation($location = null) { if ($location == '' || $location == null) { return false; } if (array_key_exists($location, $this->cachedLocation)) { return $this->cachedLocation[$location]; } X_Debug::i("Requested location: {$location}"); if ($location == null) { // location isn't a valid video id, so we return fals // and insert the query result in the cache $this->cachedLocation[$location] = false; return false; } /* // resolve the link: try { $return = $this->getLinkHosterUrl($location); } catch ( Exception $e) { $return = false; X_Debug::e("Error found: {$e->getMessage()}"); } */ // resolve a fake rtmpdump-weebtv address to wake up rmtpgw-weebtv $return = X_RtmpDumpWeebTv::getFakeUri($location); $this->cachedLocation[$location] = $return; return $return; }