mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Add photo rail test
This commit is contained in:
parent
47c87f7068
commit
34dd02df1b
3 changed files with 18 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ proc getMediaTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
|||
result = parseTimeline(await fetch(url), after)
|
||||
|
||||
proc getPhotoRail*(id: string): Future[PhotoRail] {.async.} =
|
||||
result = parsePhotoRail(await getMediaTimeline(id))
|
||||
let url = mediaTimeline / (id & ".json") ? genParams()
|
||||
result = parsePhotoRail(await fetch(url))
|
||||
|
||||
proc getSearch*[T](query: Query; after=""): Future[Result[T]] {.async.} =
|
||||
when T is Profile:
|
||||
|
|
|
|||
Loading…
Reference in a new issue