MCPcopy
hub / github.com/kkdai/youtube / Get

Method Get

player_cache.go:16–18  ·  view source on GitHub ↗

Get : get cache when it has same video id and not expired

(key string)

Source from the content-addressed store, hash-verified

14
15// Get : get cache when it has same video id and not expired
16func (s playerCache) Get(key string) playerConfig {
17 return s.GetCacheBefore(key, time.Now())
18}
19
20// GetCacheBefore : can pass time for testing
21func (s playerCache) GetCacheBefore(key string, time time.Time) playerConfig {

Callers 9

getPlayerConfigMethod · 0.80
parsePlaylistInfoMethod · 0.80
getFirstKeyJSONFunction · 0.80
sjsonGetTextFunction · 0.80
decipherURLMethod · 0.80
decryptNParamMethod · 0.80
evalJavascriptFunction · 0.80
downloadOnceMethod · 0.80
FetchTestDataFunction · 0.80

Calls 1

GetCacheBeforeMethod · 0.95

Tested by

no test coverage detected