mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Proxy media instead of using file cache
This commit is contained in:
parent
1dcb191903
commit
68a5ac20b6
7 changed files with 80 additions and 61 deletions
|
|
@ -35,7 +35,7 @@ proc expired(token: Token): bool {.inline.} =
|
|||
result = token.init < getTime() - expirationTime
|
||||
|
||||
proc isLimited(token: Token): bool {.inline.} =
|
||||
token == nil or token.remaining <= 1 and token.reset > getTime() or
|
||||
token == nil or (token.remaining <= 1 and token.reset > getTime()) or
|
||||
token.expired
|
||||
|
||||
proc release*(token: Token) =
|
||||
|
|
|
|||
Loading…
Reference in a new issue