mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Prevent 403 errors from outdated videos
This commit is contained in:
parent
7ef3a4faba
commit
be15f1b001
3 changed files with 13 additions and 17 deletions
|
|
@ -47,9 +47,8 @@ proc fetchJson*(url: Uri; headers: HttpHeaders): Future[JsonNode] {.async.} =
|
|||
headers["accept"] = jsonAccept
|
||||
newClient()
|
||||
|
||||
var resp = ""
|
||||
try:
|
||||
resp = await client.getContent($url)
|
||||
let resp = await client.getContent($url)
|
||||
result = parseJson(resp)
|
||||
except:
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue