1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-13 07:42:48 -05:00

Add photo rail test

This commit is contained in:
Zed
2020-06-07 07:56:28 +02:00
parent 47c87f7068
commit 34dd02df1b
3 changed files with 18 additions and 1 deletions

View File

@@ -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: